VUEJS_LARAVEL_JWT_AUTH icon indicating copy to clipboard operation
VUEJS_LARAVEL_JWT_AUTH copied to clipboard

role is't a string

Open prey87 opened this issue 5 years ago • 0 comments

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

prey87 avatar May 23 '19 21:05 prey87