I am using Laravel Sanctum and have customised the model (followed the config here: https://laravel.com/docs/9.x/sanctum#overriding-default-models).
Currently my model is structured like this:
id
tenant_id
name
token
abilities
last_used_at
created_at
updated_at
deleted_at (softdeletes)
When I try to create a token $user->createToken('test') I get the error:
Unknown column 'tokenable_id' in 'field list' (also 'tokenable_type') ie. it is trying to generate the token using out of the box implementation.
What would be the best way (cleanest) to get this to work. I am using it based on account based tokens rather then user based tokens.
Thanks