Guard
class Guard implements Guard (View source)
Methods
void __construct(UserProvider $provider, SessionInterface $session, Request $request = null) Create a new authentication guard. bool check() Determine if the current user is authenticated. bool guest() Determine if the current user is a guest. Authenticatable|null user() Get the currently authenticated user. int|null id() Get the ID for the currently authenticated user. bool once(array $credentials = array()