Laravel's Contextual Attributes
Are you tired of constantly fetching the current user with request()->user(), auth()->user() or passing the Request object to every controller method that needs it?
Laravel 11, with its continued support for PHP 8.1's attribute syntax, offers a more streamlined approach: by