Laravel Passport Scopes
I am a bit confused on the laravel scopes part. I have a user model and table. How can I assign a user the role of user, customer and/or admin. I have a SPA with vue and laravel api backend. I use https://laravel.com/docs/5.3/passport#consuming-your-api-with-javascript Passport::tokensCan([ 'user' => 'User', 'customer' => 'Customer', 'admin' => 'Admin', ]); How can i assign which user model has which scope(s)? Or are scopes not the same as roles? How would you implement this? Thanks in advance! Or are scopes not the same as roles? The biggest difference between the two is the context they