You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 17, 2019. It is now read-only.
vagrant@homestead:~/work/admin$ php artisan db:seed
Seeded: UserTableSeeder
Seeded: PermissionTableSeeder
[Illuminate\Database\QueryException]
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (
homestead
.role_admin
, CONSTRAINTrole_admin_user_id_foreign
FOREIGN KEY (user_id
) REFERENCESusers
(id
) ON DELETE CASCADE ON UPDATE CASCADE) (SQL: insert intorole_admin
(role_id
,user_id
) values (2, 2))[PDOException]
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (
homestead
.role_admin
, CONSTRAINTrole_admin_user_id_foreign
FOREIGN KEY (user_id
) REFERENCESusers
(id
) ON DELETE CASCADE ON UPDATE CASCADE)The text was updated successfully, but these errors were encountered: