I have a problem with a migration and package Teamwork (https://github.com/mpociot/teamwork)
I need an Emission to be able to have (N Teams), but when a migration is run, Laravel says
SQLSTATE [HY000]: General error: 1215 Unable to add foreign key constraint (SQL: alter table emissions add constraint emissions_team_id_foreign foreign key ( team_id) references teams (id) on delete cascade)
I don't understand if it is something from the package or what may be happening.
The order of execution is first Teamwork and then the migration of Emission.