The problem was that I am using uuid
for my users table and personal_access_tokens
table is morphable with id
so I changed it to uuidMorphs
and now it's working
Schema::create('personal_access_tokens', function (Blueprint $table) {
$table->bigIncrements('id');
$table->uuidMorphs('tokenable');
$table->string('name');
$table->string('token', 64)->unique();
$table->text('abilities')->nullable();
$table->timestamp('last_used_at')->nullable();
$table->timestamps();
});
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community