Auth
class Auth (View source)
Properties
protected array | $credentials |
Methods
__construct(array $provider, array $credentials = [])
Auth constructor.
static Auth
getInstance()
Get Auth instance
bool
check()
Check if user is authenticate
bool
guest()
Check if user is guest
bool
user()
Check if user is authenticate
bool
attempts(array $credentials)
Check if user is authenticate
bool
bool
id()
Get the user id
static mixed
__callStatic(string $method, array $parameters)
__call
Details
__construct(array $provider, array $credentials = [])
Auth constructor.
static Auth
configure(array $config)
Configure Auth system
static Auth
getInstance()
Get Auth instance
Auth|null
guard(null|string $guard = null)
Check if user is authenticate
bool
check()
Check if user is authenticate
bool
guest()
Check if user is guest
bool
user()
Check if user is authenticate
bool
attempts(array $credentials)
Check if user is authenticate
bool
login(Authentication $user)
Make direct login
bool
id()
Get the user id
static mixed
__callStatic(string $method, array $parameters)
__call