laravel-roles-permissions
laravel-roles-permissions copied to clipboard
Issue with migrations
You cannot add constains from a bigInt to an Int:
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); $table->foreign('permission_id')->references('id')->on('permissions')->onDelete('cascade');
In the above example the user_id = INT(10) and you're trying to reference it to the id BIGINT(20) which is not allowed in MySQLi
Same issue for the rest.