Skip to content

Commit

Permalink
[5.8] Added hasUser method to Guard contract;
Browse files Browse the repository at this point in the history
 - laravel#24518 in this PR was added method `hasUser` to the GuardHelper trait. As for me it will be useful to have this method in the contract.
  • Loading branch information
TBlindaruk committed Sep 15, 2018
1 parent 466e404 commit c636368
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Illuminate/Contracts/Auth/Guard.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,11 @@ public function validate(array $credentials = []);
* @return void
*/
public function setUser(Authenticatable $user);

/**
* Determine if the guard has a user instance.
*
* @return bool
*/
public function hasUser();
}

0 comments on commit c636368

Please sign in to comment.