1//install
2composer require laravel/sanctum
3
4// vendor
5php artisan vendor:publish --provider="Laravel\Sanctum\SanctumServiceProvider"
1use App\Models\Sanctum\PersonalAccessToken;
2use Laravel\Sanctum\Sanctum;
3
4/**
5 * Bootstrap any application services.
6 *
7 * @return void
8 */
9public function boot()
10{
11 Sanctum::usePersonalAccessTokenModel(PersonalAccessToken::class);
12}