VUEJS_LARAVEL_JWT_AUTH
VUEJS_LARAVEL_JWT_AUTH copied to clipboard
role is't a string
https://github.com/codebriefly/VUEJS_LARAVEL_JWT_AUTH/blob/master/database/migrations/2019_03_01_050248_add_role_in_users_table.php
Change
$table->string('role')->default(0)->comment('-1 for super admin, 1 for admin, 0 for user');
to
$table->integer('role')->default(0)->comment('-1 for super admin, 1 for admin, 0 for user');
or the role check don't work