Security
This package facilitate for the management of security using Laravel Gates and Policies. Security configurations can be set globally, per model, and per model method. In the various relevant places you will find the following configurations.
There are generally three configurations for security, the first is gate which allows you to define a gate check for the request.
The second is policy which corresponds to the method within the security policy as defined for the relevant model, for example policy => 'read' when specifying on the users model would incur a check for UserPolicy@read
The third is allow_guest which defines whether or not to allow guest access to this particular model and/or call, depending on the context of the specified configuration.
The security functionality follows the configuration cascade as specified in the Introduction
Last updated
Was this helpful?