Actually, I've managed to solve this using what I suspected was the issue. I've just replaced the model.
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Concerns\HasUuids;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Laravel\Sanctum\PersonalAccessToken as BasePersonalAccessToken;
class PersonalAccessToken extends BasePersonalAccessToken
{
use HasFactory, HasUuids;
}
public function boot(): void
{
Sanctum::usePersonalAccessTokenModel(PersonalAccessToken::class);
}
that worked.. is this the best approach?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community