AuthorizesResources
trait AuthorizesResources (View source)
Methods
void | authorizeResource(string $model, string|null $parameter = null, array $options = []) Authorize a resource action based on the incoming request. |
|
array | resourceAbilityMap() Get the map of resource methods to ability names. |
Details
void authorizeResource(string $model, string|null $parameter = null, array $options = [])
Authorize a resource action based on the incoming request.
protected array resourceAbilityMap()
Get the map of resource methods to ability names.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.2/Illuminate/Foundation/Auth/Access/AuthorizesResources.html