get auth guard user data in custom package laravel code example
Example 1: laravel check auth
use Illuminate\Support\Facades\Auth;
if (Auth::check()) {
// The user is logged in...
}
Example 2: Route::auth(); giving error in laravel 7
Do this step from the upgrade guide
https://laravel.com/docs/7.x/upgrade#authentication-scaffolding
############
composer require laravel/ui "^2.0"