Support the ongoing development of →
API Sanctum Laravel
Last updated 2 years ago.

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->string('token', 64)->unique();

Sign in to participate in this thread!


Your banner here too?

Robert N robertnicjoo Joined 19 Jul 2017


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.