#Polymorphic relationships
8 messages · Page 1 of 1 (latest)
If I get you correctly you mean polymorphs without namespace right?
do you mean you have 2 Laravel apps using the same database, and one has models in the app/models directory, and the other just has models in the app directory?
you would have to change the structure for both apps or combine them into one (seems best if they feed from the same db) or opt for a central api which both apps use
two apps with direct database access should not be happening in the first place imo
so I would advice to change your structure rather than finding a way to achieve what you want.. and then roll with the normal approach
keeping your approach will have you run into the same issue with every db change in the future
do you mean you have 2 Laravel apps using the same database, and one has models in the app/models directory, and the other just has models in the app directory?
- Yes, I would like to check if there is a way to support both on the Laravel v10 version without having to do migrations