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

I had the same issue, what I did was create a library (eloquent model) that handles all those things. Just like you mentioned.

Last updated 2 years ago.
0

Hi ruk33!! Thanks for your answer!

Do you Have any problems with migrations?

Last updated 2 years ago.
0

You're welcome. No I didn't. You shouldn't have any problems with migrations though (at least I can't imagine one now).

Last updated 2 years ago.
0

Yes, just define the same Eloquent model again in project #2.

To be on the safe side though, you should create and execude the migration-files only from one project's context.

Last updated 2 years ago.
0

Thank you so much Sisou!!!

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

gcreator gcreator Joined 9 May 2014

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.