Commit Graph

13 Commits (ce4343e3e26073abd0d9107e7ca02bd8799eba03)

Author SHA1 Message Date
Your Name c0cde2f682 refactor: move 52 legacy models from App\ to App\Models\
Move all Eloquent models from the app/ root directory to app/Models/
for consistency with modern Laravel conventions. The project already had
54 models in App\Models; this migrates the remaining 52 legacy models.

Changes:
- Move 52 model files from app/ to app/Models/
- Update namespace declarations in each model
- Update all ~1000 import references across the codebase
- Add Relation::morphMap() in AppServiceProvider for backward
  compatibility with existing polymorphic database records
- Add missing HasSnowflakePrimary imports for models that relied
  on same-namespace resolution
4 weeks ago
Your Name 54cfdf3c2b refactor: add return type declarations to controller methods
Adds explicit return type declarations to 498 controller methods
across 88 files. Types inferred from return statements:

- JsonResponse for response()->json() returns
- RedirectResponse for redirect()/back() returns
- View (contract) for view() returns
- Response for response() returns
- void for methods with no return value
- array for array returns
- string/int/bool for scalar returns

Also fixes 3 methods with incorrect bare returns:
- AvatarController::deleteAvatar - bare return → json response
- ImportPostController::checkPermissions - bare return → true
- RemoteAuthController::accountToId - bare return → empty array
4 weeks ago
Daniel Supernault dc4e683f0a
Update MediaController, fix redirect bug 2 years ago
Daniel Supernault 665581d80c
Update cloud storage, use config_cache 3 years ago
Daniel Supernault 4973cb4611
Update MediaController, add fallback for local files that are later stored on S3 but still are referenced in cached objects remotely 3 years ago
Daniel Supernault 4415af1bf0
Update api controllers, deprecate old endpoints 6 years ago
Daniel Supernault 8132db74e5
Update MediaController, remove deprecated endpoint 6 years ago
Daniel Supernault 0a5a0e8616
Add federated photo filters 6 years ago
Daniel Supernault 49efaae96c
Update MediaController, add timestamp to signed preview url 7 years ago
Daniel Supernault 4ad7fe05fc
Update MediaController 7 years ago
Daniel Supernault 0416843723
Update MediaController, add update method 7 years ago
daniel b8abbdd90f Apply fixes from StyleCI 8 years ago
Daniel Supernault 6982e8672a Add media model, migration, controller 9 years ago