Authenticate any Eloquent model in your Laravel API
The User model is not special. Any Eloquent model can extend Authenticatable, issue Sanctum tokens, and resolve as auth()->user() behind auth:sanctum. A pattern that fits surprisingly well whenever the API client is a Project, an Organization, or a device rather than a human.