Closed katesaikishore closed 3 years ago
Illuminate\Database\QueryException : SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint (SQL: alter table permission_role add constraint permission_role_role_id_foreign foreign key (role_id) references roles (id) on delete cascade)
permission_role
permission_role_role_id_foreign
role_id
roles
id
Using on: Laravel 6 Sequel Pro
And getting this error along
http://localhost:8000/admin/home => Gives me: ERROR 404
Dropped all tables and made fresh migration worked
Illuminate\Database\QueryException : SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint (SQL: alter table
permission_role
add constraintpermission_role_role_id_foreign
foreign key (role_id
) referencesroles
(id
) on delete cascade)Using on: Laravel 6 Sequel Pro
And getting this error along
http://localhost:8000/admin/home => Gives me: ERROR 404