create migrations automatically from an existing database in laravel 5.4

2

How can you create migrations from an existing database automatically in laravel 5.4? I found this link

link

but they are asking me not to be like that. That does not create other files for foreign keys and another for tables. Does anyone know?

for example that you create migrations of this type

Schema::create('flights', function (Blueprint $table) {
$table->increments('id');
            $table->string('name');
            $table->string('airline');
            $table->integer('user_id')->unsigned();
            $table->foreign('user_id')->references('id')->on('users');
 });

Ahi creates the relationships and migration file of an existing database

    
asked by santiago 24.06.2017 в 16:18
source

1 answer

2

I have already been able to solve this problem.

in this link

link

is a plugin to create migrations automatically in laravel 5.4 from an existing database. I also leave a link explaining the process

link

I hope I helped something with that.

    
answered by 28.06.2017 / 22:06
source