Commit Graph

114 Commits (f018004b56d8965b46d5febb0380636ad5530ef2)

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
Your Name ccd75dd903 fix: resolve undefined variable bugs (phpstan variable.undefined)
- AdminReportController: fix closure param name and remove reference to
  undefined $meta variable
- GroupsPostController: replace $status with $gp (the actual GroupPost
  variable in scope)
- PortfolioController: replace undefined $metadata with null
- DeleteWorker: remove Cache::set() call with undefined $key
4 weeks ago
Your Name c807a8524c refactor: replace short facade aliases with fully-qualified imports
Convert all 273 short facade alias imports (e.g. 'use Cache;') to their
fully-qualified class names (e.g. 'use Illuminate\Support\Facades\Cache;')
across 193 files.

This resolves 643 PHPStan 'class.notFound' errors caused by the static
analyzer being unable to resolve global aliases, and aligns with modern
Laravel conventions. It also unblocks removing the aliases array from
config/app.php in a future change.

All 107 tests pass.
4 weeks ago
Your Name edb4368b08 refactor: replace deprecated laravel/helpers with native alternatives
Replace all deprecated helper function calls:
- str_slug() → Str::slug()
- starts_with() → str_starts_with()
- ends_with() → str_ends_with()
- array_first() → Arr::first()
- array_last() → Arr::last()
- array_flatten() → Arr::flatten()

Remove laravel/helpers package from composer.json as it is no longer
needed and will not be maintained for Laravel 13.
4 weeks ago
Shift 19880c2ffb
Convert string references to `::class`
PHP 5.5.9 adds the new static `class` property which provides the fully qualified class name. This is preferred over using strings for class names since the `class` property references are checked by PHP.
4 weeks ago
Shlee c2044f77cf
Update AdminUserController.php 1 month ago
Daniel Supernault 374344754e
Lint 9 months ago
dansup f783db493a
Merge pull request #6340 from grossermensch/patch-3
Allow to set new image types in admin interface
10 months ago
Severin df5814d0f8
Allow to set new image types in admin interface 10 months ago
Your Name 45a9a3b472 RemoveUnreachableStatementRector 11 months ago
Daniel Supernault cc90df9d8c
Add user admin toggles for email and ip 11 months ago
Ross Bearman db03733415 Add admin invite interface and email support
This commit does two things:

* Add invite email support to AdminInviteCommand
  - Moves `invite_code` generation to AdminInvite model `creating` event
* Add admin invite management section under admin users dashboard
  - Adds `Admin/AdminUserInviteController` and associated `home` and
    `create` Blade templates.
  - Adds "Invites" button to admin user dashboard
1 year ago
Daniel Supernault b6bc1e50e2
Update Admin Users dashboard 1 year ago
Daniel Supernault 7ddbe0c473
Add AVIF support 2 years ago
Daniel Supernault 599a36f4aa
Update AdminSettingsController, persist updates to ConfigCacheService 2 years ago
Daniel Supernault aa44835434
Update AdminSettingsController, increase max photo size limit from 50MB to 1GB 2 years ago
Daniel Supernault 28990280ef
Update AdminReportController 2 years ago
Daniel Supernault ed9f2fbb09
Update AdminReportController 2 years ago
Daniel Supernault c0478f5f8f
Update AdminReportController 2 years ago
Daniel Supernault 06ebb514d7
Update AdminReportController 2 years ago
Anil Kulkarni 9db038e4bb
Check for oauth keys from the config, as well as from disk 2 years ago
Daniel Supernault ea2a9eb42a
Add Authorized Fetch 2 years ago
Daniel Supernault 3d6b9badf4
Add groups models, controllers and services 2 years ago
Daniel Supernault d946afcc5c
Update AdminSettings, use better validation for user integer settings 3 years ago
Daniel Supernault 2dcbc1d5ef
Update AdminSettings, add max_account_size support 3 years ago
Daniel Supernault dcc5f416ef
Update AdminSettingsController, add AdminSettingsService 3 years ago
Daniel Supernault ac1f074889
Update AdminSettingsController, add user filter max limit settings 3 years ago
Daniel Supernault 3628b4625c
Update ConfigCacheService, encrypt keys at rest 3 years ago
Daniel Supernault 087b27916f
Update filesystems config, add to config_cache 3 years ago
Daniel Supernault ce228f7fa4
Update oauth setting, use config_cache 3 years ago
Daniel Supernault ad506e901d
Update AdminDirectoryController, fix type casting 3 years ago
Daniel Supernault 4a6be62128
Add account migration configurable, but enabled by default 3 years ago
Daniel Supernault ef0ff78e4a
Add Remote Reports to Admin Dashboard Reports page 3 years ago
Daniel Supernault a16309ac18
Update AdminReportController, add story report support 3 years ago
Daniel Supernault 59c70239f8
Update Directory logic, add curated onboarding support 3 years ago
Daniel Supernault 8dac2caf1d
Add Curated Onboarding 3 years ago
Daniel Supernault e4d3b19642
Update AdminReportController, add `profile_id` to group by. Fixes #4685 3 years ago
David Gabriel 480394f3d8 [Bugfix] Fix for #4518: SQL query that generates the report list in the admin view needs to include the 'id' field 3 years ago
Daniel Supernault ed87ddb923
Update RemoteStatusDelete pipeline 3 years ago
Daniel Supernault 36b6bf480e
Update admin dashboard, improve users section 3 years ago
Daniel Supernault c6ffda9618
Update admin moderation logic, only re-add top level posts 3 years ago
Daniel Supernault ae0d5d2d40
Update AdminReportController 3 years ago
Daniel Supernault 132a58de54
Add Autospam Advanced Detection 3 years ago
Daniel Supernault 588ca653a8
Update admin autospam apis, remove autospam warning notifications when appropriate 3 years ago
Daniel Supernault ccbba56633
Update AdminSettingsController 3 years ago
Daniel Supernault c6cc6327d3
Redesigned Admin Dashboard Reports/Moderation 3 years ago
Daniel Supernault 849e510311
Update db:raw queries to support laravel v10 3 years ago
Daniel Supernault 87d8f516f9
Add admin landing settings 4 years ago
Daniel Supernault d5d9500d07
Update admin instance management, improve filtering/sorting and add import/export support 4 years ago