Support the ongoing development of Laravel.io →
Authentication Session Eloquent
Last updated 1 year ago.
0

Most certainly is!

Auth::user()->username;
Auth::user()->userId;
Auth::user()->password;

So you would do in a view:

<h2>Welcome back {{{ Auth::user()->username }}}!</h2>

More reading :

http://laravel.com/docs/security

and control F (find) "Accessing The Logged In User" and it will show some more cool stuff!

Good luck!

Last updated 1 year ago.
0

thank you.

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

embj69 embj69 Joined 26 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.