appserviceprovider laravel auth::user() code example
Example: appserviceprovider laravel auth user
# boot method
public function boot()
{
# Share to all view
view()->composer('*', function($view)
{
# Check Auth Here
if (Auth::check()) {
//
}
});
}