laravel how to run a function at login code example Example: how to find the name of login user in laravel Auth::user()->name