Laravel Migration: Cannot add a foreign key of char data type

Laravel

When you trying to create a foreign key of char data type. Then you run the migrate command. You may get the following error. This is your two migrations files, transactions and transaction_tasnfer tables transactions migration file transaction_transfer migration file If you write your migrations like above, you will get an error like this. The … Read more