mirror of https://github.com/pixelfed/pixelfed
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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 | |
|---|---|---|
| .. | ||
| Controllers | 4 weeks ago | |
| Middleware | 4 weeks ago | |
| Requests | 1 month ago | |
| Resources | 4 weeks ago | |