When displaying multiple data from a user in a view, is it best to do it in a way?
Option 1 (pass data to the view):
$usuario = Auth::user();
return view('painel.usuarios.perfil', compact('usuario'));
Option 2 (directly in the view):
Auth::user()->name
Auth::user()->email
When I say the best option, I'm considering good practices and especially performance issues. Consider the Laravel 5.3 framework