Файл: system/vendor/illuminate/support/Facades/Gate.php
Строк: 61
<?php
namespace IlluminateSupportFacades;
use IlluminateContractsAuthAccessGate as GateContract;
/**
* @method static bool has(string $ability)
* @method static IlluminateContractsAuthAccessGate define(string $ability, callable|string $callback)
* @method static IlluminateContractsAuthAccessGate policy(string $class, string $policy)
* @method static IlluminateContractsAuthAccessGate before(callable $callback)
* @method static IlluminateContractsAuthAccessGate after(callable $callback)
* @method static bool allows(string $ability, array|mixed $arguments = [])
* @method static bool denies(string $ability, array|mixed $arguments = [])
* @method static bool check(iterable|string $abilities, array|mixed $arguments = [])
* @method static bool any(iterable|string $abilities, array|mixed $arguments = [])
* @method static IlluminateAuthAccessResponse authorize(string $ability, array|mixed $arguments = [])
* @method static mixed raw(string $ability, array|mixed $arguments = [])
* @method static mixed getPolicyFor(object|string $class)
* @method static IlluminateContractsAuthAccessGate forUser(IlluminateContractsAuthAuthenticatable|mixed $user)
* @method static array abilities()
* @method static IlluminateAuthAccessResponse inspect(string $ability, array|mixed $arguments = [])
* @method static IlluminateAuthAccessGate guessPolicyNamesUsing(callable $callback)
*
* @see IlluminateContractsAuthAccessGate
*/
class Gate extends Facade
{
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return GateContract::class;
}
}