How could I return a laravel model based on the scopes from the access token the request is using for authorization similar to how discord does it with its identity and email scopes here. I'd like to basically 'dynamically' hide/show specific attributes in a model based on the token scope
Would this be something that would be defined in a controller or in the model?