Search code examples
phplaravellaravel-5laravel-authorization

How laravel `Auth:user()` or `Auth:id()` works


How laravel Auth:user() or Auth:id() works

Is it resides in session or database.

I searched but not get good article.

Please help to understand. I know I will get many down-votes ;)


Solution

  • Did you read this? Its a good guide to start with

    https://laravel.com/docs/5.4/authentication