Commit Graph

9 Commits (0939f495bb0dee5122c16205b49a277da22cdd2a)

Author SHA1 Message Date
Your Name 0939f495bb fix: replace Auth facade with $request->user() in request-scoped classes
Replace Auth::user() with $request->user() and Auth::check() with
$request->user() !== null (or ! $request->user()) across all
controllers and middleware that have access to the request object.

This resolves 99 larastan.noAuthFacadeInRequestScope errors and
improves Octane compatibility.

For protected helper methods without $request in scope, uses the
request() helper instead.

Methods that previously lacked a Request parameter but used Auth
facade now accept Request $request via Laravel's auto-injection.
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
Daniel Supernault 0d25917c29
Update Data Export, refactor following/follower and statuses exports to allow accounts of any size with api entity instead of ap 2 years ago
Daniel Supernault 796f8ca78c
Update ExportSettings controller 7 years ago
Daniel Supernault a23900ed8b
Update ExportSettings 8 years ago
Daniel Supernault 2063bfc9fd
Add status exports 8 years ago
Daniel Supernault 3651917e84
Update ExportSettings 8 years ago
Daniel Supernault 4122bb83cb
Add account export 8 years ago
Daniel Supernault de8d472527
Move data export to its own controller 8 years ago