namespace App\Models; use Illuminate\Foundation\Auth\User as Authenticatable; use Tymon\JWTAuth\Contracts\JWTSubject; class ApiUser extends Authenticatable implements JWTSubject { protected $fillable = ['id', 'name']; public function getJWTIdentifier() { return $this->getKey(); } public function getJWTCustomClaims() { return []; } }