Laravel Pro Tips
#requests #authorization #gates
š¶ļø #Laravel Tip: Cleaning up the Controller is a responsibility! I find myself moving things out of the Controller to FormRequest, Action, Services, etc. Here's how you can authorize a request inside the FormRequest & not in the Controller Action.
Bilal Haidar - Available 4 Laravel gigs
#authorization #livewire
#Laravel livewire Tip: If you want to use `authorize` method inside livewire component, all what you need to do, is to use `AuthorizesRequests` trait. Here is how to do it:
Oussama Sid
#authorization
š„ #Laravel Tip: Most of the time, youāll want to use Laravelās default auth. However, if your app is mostly free of auth routes, then you might want to consider a simpler setup of basic auth (which does not require routes, controllers & views, but instead uses a browser prompt).
Matt Kingshott
#authorization #gates #policies
š„ #Laravel Tip: If youāre new to authorisation, you might not be sure when to use a gate and when to use a policy. Letās take a high level look at themā¦
#authorization #events #auditing #security
š„ #Laravel Tip: Tracking logins and logouts for auditing or security purposes is incredibly easy thanks to Laravelās login and logout events. Simply listen for them in a service provider and respond when they are fired.
#requests #authorization #bearer token
#Laravel Tip š„ : bearerToken() is very handy when you are working with apis & want to access the token from Authorization header. #PHP #webdevelopers #developers
Mohammad Haris ā”
#http #authorization
š„ I keep finding these sweet conveniences in Laravelās HTTP client. For instance, thereās a `withToken` method to attach the `Authorization` header to a request. So much nice than having to add it manually. š„°
Kai Sassnowski š„
No articles were found.