Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- * @return \Illuminate\Contracts\Auth\Authenticatable
- *
- * @throws \Illuminate\Auth\AuthenticationException
- */
- public function authenticate()
- {
- if (! is_null($user = $this->user())) {
- return $user;
- }
- throw new AuthenticationException;
- }
- /**
- * Determine if the current user is authenticated.
- *
- * @return bool
- */
- public function check()
- {
- return ! is_null($this->user());
- }
- /**
- * Determine if the current user is a guest.
- *
- * @return bool
- */
- public function guest()
- {
- return ! $this->check();
- Arguments
- "Unauthenticated."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement