[Solved] Start Laravel project - Import from migrations

0 votes
asked Oct 23, 2019 in How To & Manuals by frodemm (300 points)
edited Nov 7, 2019 by ludek.vodicka

When starting a new Laravel 6 project, I want to import the default migrations that are added by default when creating a Laravel project

Is this possible?
How to do this in a simple way?
I want to add them, since I want to make relations from users to other models.

1 Answer

+1 vote
answered Oct 23, 2019 by ludek.vodicka Skipper developer (140,450 points)
selected Nov 7, 2019 by frodemm
 
Best answer

Hi,

currently, you can import your pre-created database via Import project.

But it's definitely a good idea to ship default Laravel models directly with the new Laravel project. I will add it to the todo list.

commented Oct 23, 2019 by frodemm (300 points)

Thanks.
But to import I first need to migrate database and migrate from that? Its not possible to import migrations?

commented Oct 23, 2019 by ludek.vodicka Skipper developer (140,450 points)

Sorry, it's not possible to import the migrations code directly.

We originally wanted to implement such a feature but because migrations code doesn't have an exact format (like XML/YML) and can contain any user code, it's almost impossible to correctly import such migrations to Skipper.

...