foreign key incorrectly formed laravel 8 code example
Example: foreign key constraint is incorrectly formed laravel
When creating a new table in Laravel. A migration will be generated like:
$table->bigIncrements('id');
Instead of (in older Laravel versions:
$table->increments('id');