Skip to content

Tag: laravel-permission

Laravel 5.7 + Spatie Permissions + JWT auth

I’m setting up a REST API using Laravel 5.7. To validate authentication I JWT-auth and for permissions and roles I use Spatie. My problem: when trying to link a role to a user I get the following error The role do exist in the database: This is how I’m trying to assign a role to the user: As I&#82…