How can you create migrations from an existing database automatically in laravel 5.4? I found this 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