laravel/framework — pull request #2439 by franzliedke (2013-10-08 21:20:18+00:00)
Title: Change Auth::guest() to call the check() method.

Instead of reimplementing the logic of the Auth::check() method, we can call and negate it.

When creating new auth drivers, it is sometimes necessary to extend the Guard class, too. This small change makes creating those subclasses easier, as only the `check()` method will have to be overwritten. `guest()` will still work.

For example, I had to do this because in my existing system guest users did have an ID 1 instead of no entry in the database at all.