Authorizable (Foundation\Auth)

Authorizable

trait Authorizable (View source)

Methods

bool can(string $ability, array|mixed $arguments = array())

Determine if the entity has a given ability.

bool cant(string $ability, array|mixed $arguments = array())

Determine if the entity does not have a given ability.

bool cannot(string $ability, array|mixed $arguments = array())

Determine if the entity does not have a given ability.

Details

bool can(string $ability, array|mixed $arguments = array())

Determine if the entity has a given ability.

Parameters

string $ability
array|mixed $arguments

Return Value

bool

bool cant(string $ability, array|mixed $arguments = array())

Determine if the entity does not have a given ability.

Parameters

string $ability
array|mixed $arguments

Return Value

bool

bool cannot(string $ability, array|mixed $arguments = array())

Determine if the entity does not have a given ability.

Parameters

string $ability
array|mixed $arguments

Return Value

bool

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Foundation/Auth/Access/Authorizable.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部