Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ca479b7

Browse files
committed
Merge pull request laravel#2439 from franzliedke/patch-12
Change Auth::guest() to call the check() method.
2 parents 1f9a76a + 8c033b0 commit ca479b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Illuminate/Auth/Guard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function check()
9696
*/
9797
public function guest()
9898
{
99-
return is_null($this->user());
99+
return ! $this->check();
100100
}
101101

102102
/**

0 commit comments

Comments
 (0)