Home Documentation Download Pricing Buy Now

[Solved] Start Laravel project - Import from migrations

0 votes

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.

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

1 Answer

+1 vote
 
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.

answered Oct 23, 2019 by ludek.vodicka Skipper developer (140,530 points)
selected Nov 7, 2019 by frodemm

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

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.

...