1
Project is in PHP 7 with Laravel 5.8 using toastr for notifications, there is the possibility to put in the display of msg toastr info(example) the name of the user session?
using the session:
Auth::user()->name
My user controller:
public function index()
{
toastr()->success("Você está logado","{!! Auth::user()->name !!}");
return view('home')->with('$user',Auth::user();
}
Wouldn’t it be simpler to concatenate the value?
"Seja bem-vindo, " . Auth::user()->name
– Woss