Gate::clearResolvedInstances()

static void clearResolvedInstances() Clear all of the resolved instances. Return Value void

Gate::clearResolvedInstance()

static void clearResolvedInstance(string $name) Clear a resolved facade instance. Parameters string $name Return Value void

Gate::check()

bool check(string $ability, array|mixed $arguments = array()) Determine if the given ability should be granted. Parameters string $ability array|mixed $arguments Return Value bool

Gate::check()

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

Gate::before()

$this before(callable $callback) Register a callback to run before all Gate checks. Parameters callable $callback Return Value $this

Gate::before()

$this before(callable $callback) Register a callback to run before all Gate checks. Parameters callable $callback Return Value $this

Gate::authorize()

Response authorize(string $ability, array|mixed $arguments = array()) Determine if the given ability should be granted for the current user. Parameters string $ability array|mixed $arguments Return Value Response Exceptions AuthorizationException

Gate::authorize()

Response authorize(string $ability, array|mixed $arguments = array()) Determine if the given ability should be granted for the current user. Parameters string $ability array|mixed $arguments Return Value Response Exceptions AuthorizationException

Gate::allows()

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

Gate::allows()

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