Class 'Laravel\Sanctum\SanctumServiceProvider' not found code example
Example 1: sanctum laravel
php artisan vendor:publish --provider="Laravel\Sanctum\SanctumServiceProvider"
Example 2: sanctum laravel
composer require laravel/sanctum
Example 3: Trait 'laravel\sanctum\HasApiTokens' not found laravel 7
HasApiTokens