user laravel 8 get code example
Example 1: how to find the name of login user in laravel
Auth::user()->name
Example 2: laravel auth
//laravel 8.x
//for bootstrap scafolding
php artisan ui bootstrap --auth
Auth::user()->name
//laravel 8.x
//for bootstrap scafolding
php artisan ui bootstrap --auth