I\'m trying to do a view::share(\'current_user\', Auth::User());
but in laravel 5 i can\'t find where to do this, in L4 you could do this in the baseController,
First, you can probably create your own BaseController and extend it in other controllers.
Second thing is, that you may use Auth:user()
directly in View, you don't need to assign anything in the view.
For other usages you can go to app/Providers/App/ServiceProvider.php
and in boot
method you can View::share('current_user', Auth::User());
but or course you need to add importing namespaces first:
use View;
use Auth;
because this file is in App\Providers
namespace