olip
7 months ago
851
7
Laravel

Hi, I'm new to Laravel. I installed Laravel and having trouble to migrate new table call forumapp. My local env is running XAMPP on Window. The error is

Posted 7 months ago by olip

Illuminate\Database\QueryException : SQLSTATE[HY000]: General error: 1005 Can't create table forumapp.#sql-f98_c5 (errno: 150 "Foreign key constraint is incorrectly formed") (SQL: alter table replies add constraint replies_question_id_foreign foreign key (question_id) references questions (id) on delete cascade)

Please sign in or create an account to participate in this conversation.