Gate::getPolicyFor()

mixed getPolicyFor(object|string $class) Get a policy instance for a given class. Parameters object|string $class Return Value mixed Exceptions InvalidArgumentException

Gate::getPolicyFor()

mixed getPolicyFor(object|string $class) Get a policy instance for a given class. Parameters object|string $class Return Value mixed Exceptions InvalidArgumentException

Gate::getFacadeRoot()

static mixed getFacadeRoot() Get the root object behind the facade. Return Value mixed

Gate::getFacadeApplication()

static Application getFacadeApplication() Get the application instance behind the facade. Return Value Application

Gate::forUser()

Gate forUser(Authenticatable|mixed $user) Get a guard instance for the given user. Parameters Authenticatable|mixed $user Return Value Gate

Gate::forUser()

Gate forUser(Authenticatable|mixed $user) Get a gate instance for the given user. Parameters Authenticatable|mixed $user Return Value Gate

Gate::denies()

bool denies(string $ability, array|mixed $arguments = array()) Determine if the given ability should be denied for the current user. Parameters string $ability array|mixed $arguments Return Value bool

Gate::denies()

bool denies(string $ability, array|mixed $arguments = array()) Determine if the given ability should be denied for the current user. Parameters string $ability array|mixed $arguments Return Value bool

Gate::define()

$this define(string $ability, callable|string $callback) Define a new ability. Parameters string $ability callable|string $callback Return Value $this

Gate::define()

$this define(string $ability, callable|string $callback) Define a new ability. Parameters string $ability callable|string $callback Return Value $this Exceptions InvalidArgumentException