platform/api/laravel/Support/Facades/Gate.yaml
2024-09-02 10:44:11 -07:00

169 lines
5.6 KiB
YAML

name: Gate
class_comment: '# * @method static bool has(string|array $ability)
# * @method static \Illuminate\Auth\Access\Response allowIf(\Illuminate\Auth\Access\Response|\Closure|bool
$condition, string|null $message = null, string|null $code = null)
# * @method static \Illuminate\Auth\Access\Response denyIf(\Illuminate\Auth\Access\Response|\Closure|bool
$condition, string|null $message = null, string|null $code = null)
# * @method static \Illuminate\Auth\Access\Gate define(string $ability, callable|array|string
$callback)
# * @method static \Illuminate\Auth\Access\Gate resource(string $name, string $class,
array|null $abilities = null)
# * @method static \Illuminate\Auth\Access\Gate policy(string $class, string $policy)
# * @method static \Illuminate\Auth\Access\Gate before(callable $callback)
# * @method static \Illuminate\Auth\Access\Gate 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 \Illuminate\Auth\Access\Response authorize(string $ability, array|mixed
$arguments = [])
# * @method static \Illuminate\Auth\Access\Response inspect(string $ability, array|mixed
$arguments = [])
# * @method static mixed raw(string $ability, array|mixed $arguments = [])
# * @method static mixed getPolicyFor(object|string $class)
# * @method static \Illuminate\Auth\Access\Gate guessPolicyNamesUsing(callable $callback)
# * @method static mixed resolvePolicy(object|string $class)
# * @method static \Illuminate\Auth\Access\Gate forUser(\Illuminate\Contracts\Auth\Authenticatable|mixed
$user)
# * @method static array abilities()
# * @method static array policies()
# * @method static \Illuminate\Auth\Access\Gate defaultDenialResponse(\Illuminate\Auth\Access\Response
$response)
# * @method static \Illuminate\Auth\Access\Gate setContainer(\Illuminate\Contracts\Container\Container
$container)
# * @method static \Illuminate\Auth\Access\Response denyWithStatus(int $status,
string|null $message = null, int|null $code = null)
# * @method static \Illuminate\Auth\Access\Response denyAsNotFound(string|null $message
= null, int|null $code = null)
# *
# * @see \Illuminate\Auth\Access\Gate'
dependencies:
- name: GateContract
type: class
source: Illuminate\Contracts\Auth\Access\Gate
properties: []
methods:
- name: getFacadeAccessor
visibility: protected
parameters: []
comment: '# * @method static bool has(string|array $ability)
# * @method static \Illuminate\Auth\Access\Response allowIf(\Illuminate\Auth\Access\Response|\Closure|bool
$condition, string|null $message = null, string|null $code = null)
# * @method static \Illuminate\Auth\Access\Response denyIf(\Illuminate\Auth\Access\Response|\Closure|bool
$condition, string|null $message = null, string|null $code = null)
# * @method static \Illuminate\Auth\Access\Gate define(string $ability, callable|array|string
$callback)
# * @method static \Illuminate\Auth\Access\Gate resource(string $name, string
$class, array|null $abilities = null)
# * @method static \Illuminate\Auth\Access\Gate policy(string $class, string $policy)
# * @method static \Illuminate\Auth\Access\Gate before(callable $callback)
# * @method static \Illuminate\Auth\Access\Gate 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 \Illuminate\Auth\Access\Response authorize(string $ability,
array|mixed $arguments = [])
# * @method static \Illuminate\Auth\Access\Response inspect(string $ability, array|mixed
$arguments = [])
# * @method static mixed raw(string $ability, array|mixed $arguments = [])
# * @method static mixed getPolicyFor(object|string $class)
# * @method static \Illuminate\Auth\Access\Gate guessPolicyNamesUsing(callable
$callback)
# * @method static mixed resolvePolicy(object|string $class)
# * @method static \Illuminate\Auth\Access\Gate forUser(\Illuminate\Contracts\Auth\Authenticatable|mixed
$user)
# * @method static array abilities()
# * @method static array policies()
# * @method static \Illuminate\Auth\Access\Gate defaultDenialResponse(\Illuminate\Auth\Access\Response
$response)
# * @method static \Illuminate\Auth\Access\Gate setContainer(\Illuminate\Contracts\Container\Container
$container)
# * @method static \Illuminate\Auth\Access\Response denyWithStatus(int $status,
string|null $message = null, int|null $code = null)
# * @method static \Illuminate\Auth\Access\Response denyAsNotFound(string|null
$message = null, int|null $code = null)
# *
# * @see \Illuminate\Auth\Access\Gate
# */
# class Gate extends Facade
# {
# /**
# * Get the registered name of the component.
# *
# * @return string'
traits: []
interfaces: []