2 Comments
Mar 26Liked by Stephen Rees-Carter

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).

Expand full comment