Вход Регистрация
Файл: vendor/laravel/framework/src/Illuminate/Support/Facades/Gate.php
Строк: 128
<?php

namespace IlluminateSupportFacades;

use 
IlluminateContractsAuthAccessGate as GateContract;

/**
 * @method static bool has(string|array $ability)
 * @method static IlluminateAuthAccessResponse allowIf(IlluminateAuthAccessResponse|Closure|bool $condition, string|null $message = null, string|null $code = null)
 * @method static IlluminateAuthAccessResponse denyIf(IlluminateAuthAccessResponse|Closure|bool $condition, string|null $message = null, string|null $code = null)
 * @method static IlluminateAuthAccessGate define(string $ability, callable|array|string $callback)
 * @method static IlluminateAuthAccessGate resource(string $name, string $class, array|null $abilities = null)
 * @method static IlluminateAuthAccessGate policy(string $class, string $policy)
 * @method static IlluminateAuthAccessGate before(callable $callback)
 * @method static IlluminateAuthAccessGate after(callable $callback)
 * @method static bool allows(iterable|string $ability, array|mixed $arguments = [])
 * @method static bool denies(iterable|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 bool none(iterable|string $abilities, array|mixed $arguments = [])
 * @method static IlluminateAuthAccessResponse authorize(string $ability, array|mixed $arguments = [])
 * @method static IlluminateAuthAccessResponse inspect(string $ability, array|mixed $arguments = [])
 * @method static mixed raw(string $ability, array|mixed $arguments = [])
 * @method static mixed getPolicyFor(object|string $class)
 * @method static IlluminateAuthAccessGate guessPolicyNamesUsing(callable $callback)
 * @method static mixed resolvePolicy(object|string $class)
 * @method static IlluminateAuthAccessGate forUser(IlluminateContractsAuthAuthenticatable|mixed $user)
 * @method static array abilities()
 * @method static array policies()
 * @method static IlluminateAuthAccessGate defaultDenialResponse(IlluminateAuthAccessResponse $response)
 * @method static IlluminateAuthAccessGate setContainer(IlluminateContractsContainerContainer $container)
 * @method static IlluminateAuthAccessResponse denyWithStatus(int $status, string|null $message = null, int|null $code = null)
 * @method static IlluminateAuthAccessResponse denyAsNotFound(string|null $message = null, int|null $code = null)
 *
 * @see IlluminateAuthAccessGate
 */
class Gate extends Facade
{
    
/**
     * Get the registered name of the component.
     *
     * @return string
     */
    
protected static function getFacadeAccessor()
    {
        return 
GateContract::class;
    }
}
Онлайн: 2
Реклама