check if user login laravel 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