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::shouldUse()

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

AuthManager::userResolver()

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

AuthManager::viaRequest()

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

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.

AuthManager::getDefaultDriver()

string getDefaultDriver() Get the default authentication driver name. Return Value string

AuthManager::guard()

mixed guard(string|null $name = null) Attempt to get the guard from the local cache. Parameters string|null $name Return Value mixed

AuthManager::setDefaultDriver()

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