Gate (Contracts)

Gate

interface Gate (View source)

Methods

登录查看完整内容
bool has( string $ability)

Determine if a given ability has been defined.

$this define( string $ability, callable|string $callback)

Define a new ability.

$this policy( string $class, string $policy)

Define a policy class for a given class type.