Laravel provides a simple way to authorise user actions on specific resources. With Authorization, you can selectively allow users access to certain resources while denying access to others. Laravel provides a simple API for managing user authorizations by using Gates
and Policies
. Gates
provide a simple closure based approach to authorisation using the AuthServiceProvider
while Policies
allow you to organise authorisation logic around models using classes.