Authorizable

Authorizable trait Authorizable (View source) Methods bool can(string $ability, array|mixed $arguments = array()) Determine if the entity has a given ability. bool cant(string $ability, array|mixed $arguments = array()) Determine if the entity does not have a given ability. bool cannot(string $ability, array|mixed $arguments = array()) Determine if the entity does not have a given ability.

Authorizable

Authorizable interface Authorizable (View source) Methods bool can(string $ability, array|mixed $arguments = array()) Determine if the entity has a given ability.

AuthManager::__construct()

void __construct(Application $app) Create a new Auth manager instance. Parameters Application $app Return Value void

AuthManager::__call()

mixed __call(string $method, array $parameters) Dynamically call the default driver instance. Parameters string $method array $parameters Return Value mixed

AuthManager::viaRequest()

$this viaRequest(string $driver, callable $callback) Register a new callback based request guard. Parameters string $driver callable $callback Return Value $this

AuthManager::userResolver()

Closure userResolver() Get the user resolver callback. Return Value Closure

AuthManager::shouldUse()

void shouldUse(string $name) Set the default guard driver the factory should serve. Parameters string $name Return Value void

AuthManager::setDefaultDriver()

void setDefaultDriver(string $name) Set the default authentication driver name. Parameters string $name Return Value void

AuthManager::resolveUsersUsing()

$this resolveUsersUsing(Closure $userResolver) Set the callback to be used to resolve users. Parameters Closure $userResolver Return Value $this

AuthManager::provider()

$this provider(string $name, Closure $callback) Register a custom provider creator Closure. Parameters string $name Closure $callback Return Value $this