Migration: Cannot add foreign key constraint – Laravel 9
I'm trying to create foreign keys in Laravel however when I migrate my table using artisan i am thrown the following error: SQLSTATE[HY000]: General error: 1005 Can't create table `bright`.`carts` (errno: 150 "Foreign key constraint is incorrectly formed") (SQL: alter…