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.

Parameters

string $model
string|null $parameter
array $options

Return Value

void

protected array resourceAbilityMap()

Get the map of resource methods to ability names.

Return Value

array

© 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