[Tip#75] As part of the simplification of the app structure in Laravel 11, the Request Authorisation and Validation methods are no longer available on the controller - here's how you get it back.
Povilas' video from Laravel Daily on YouTube highlights that instead of using the traits, you can use Gate::authorize(); and $request->validate(); <- after injecting the Request object into the controller. This results in more abstracted and clearer code (traits tend to be a little less clear as to where the functions come from).
Povilas' video from Laravel Daily on YouTube highlights that instead of using the traits, you can use Gate::authorize(); and $request->validate(); <- after injecting the Request object into the controller. This results in more abstracted and clearer code (traits tend to be a little less clear as to where the functions come from).