Can you help me with this error? I can’t migrate my file in mysql.
I’m running the latest version of laravel when i migrate in the terminal.
When i run:
php artisan migrate
I get the following error:
SQLSTATE[HY000]: General error: 1005 Can’t create tableagricultures1
.archives
(errno: 150 “Foreign key constraint is incorrectly formed”) (Connection: mysql, SQL: alter tablearchives
add constraintarchives_farmers_id_foreign
foreign key (farmers_id
) referencesfarmers
(id
) on delete cascade)