Automatically generate your migrations from an existing database schema. Generate Laravel Migrations from an existing database, including indexes and foreign keys. Laravel Migrations Generator will first generate all the tables, columns and indexes, and afterwards setup all the foreign key constraints. So make sure you include all the tables listed in the foreign keys so that they are present when the foreign keys are created.