Laravel Sanctum token validation for specific model

Viewed 60

Sanctum makes it possible, when creating a token, to specify the model to which this token belongs - in the table, the tokenable_type field.
For example:

tokenable_type
App\Models\User
App\Models\User
App\Models\User
App\Models\Group

I wanted Sanctum to only check the token that belongs to a specific model for example Group is this possible?

0 Answers
Related