Support the ongoing development of Laravel.io →
Configuration Database Eloquent
Last updated 2 years ago.
0

You can basicly do this by renaming files. You can call php artisan migrate one by one with given filename. And you can maybe first create all tables and then make Schema::table

Last updated 2 years ago.
0

dudzio12 said:

You can basicly do this by renaming files. You can call php artisan migrate one by one with given filename. And you can maybe first create all tables and then make Schema::table

I had been designing the database with MySQL Workbench EER diagrams so it was quite easy to extract an SQL table creation file from there and see the order for the files to work.

Though, now when I run php artisan migrate, I get an error: [ErrorException] Creating default object from empty value

What does this mean and how do I fix it?

Edit. This was a mistake in one of my migration files. I had forgot the table parameter in the Schema::create callback function.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.