error 1005 laravel because of migrations pariorities : i have some tables that are connected to each other.
i should declare foreign key for those.
when i doing this by migrations, the error 1005 appear.
I know that this error due to migrations priorities.
now i dont know how to solve this problem.

this is one of my migrations:
[![categories migration][1]][1]


and this is another one:
[![colors migration][2]][2]


And finally, the most important migration is:
[![products migration][3]][3]


  [1]: https://i.stack.imgur.com/wZ9F5.png
  [2]: https://i.stack.imgur.com/mqjFc.png
  [3]: https://i.stack.imgur.com/qRbnm.png

and i don't know how to declare foreign keys in another migration.

thanks for your helping.