Kbwebs / MultiAuth

MIT License
138 stars 36 forks source link

How to access model in implementation #2

Closed toinkiie closed 9 years ago

toinkiie commented 9 years ago

Like this : Accessing The Logged In User

Once a user is authenticated, you may access the User model / record:

$email = Auth::user()->email;

kasperbasse commented 9 years ago

Hi, To access the authenticated user model, you can do it like this: Auth::user()->get() Or if you only want to get the email: Auth::user()->get()->email I have just now updated the README for this. I hope it helps on your problem :)