You would use Auth::check() to see if user is authenticated, then Auth::id() or Auth::User()->username or other related data that is in the users table else you would have to send the user info to your view if you have a basic table but save personal infor on another table from your controller you would then
$userInfo = User::find(Auth::id())->with('personalInfo')->first();
return View::make('page')->with('userInfo',$userInfo);
//in your view then you have access to
{{$userInfo->name }}
{{$userInfo->address}}
//the values from the table and related model.
If you're wanting it in header.blade.php which is called on every page of your app, you will want to do a view composer. Then you can check for if they're authed and stuff.
I am trying to get the fullname of the currently logged in user and display it as the title of the view. This ofcourse wouldnt work. Please share with me the right way to go about this. thanks
Is there a way to bind $currentUser variable to views? using (for example) ViewCOmposers?
becaues in view composers Auth::check() returns false, while if I do Auth::check() in view itself - it is ok :(