v2.0.0-beta2 - Auth::isLoggedIn()
Pre-release
Pre-release
Auth::user()
throws anAuthException
if not logged in.- Added method
Auth::isLoggedIn()
.
The user()
method always returns a user and never null
, as
it typical to use Auth::user()->doSomething()
while assuming
a user is logged in due to access control on the page. Having
the method return null
is an issue when using static code
analysis.