laravel instance? you mean another laravel app? if the structure is the same you can just export database and import it in the new place.
Migration of Laravel Data
I have a site which has data at 3 levels, think Quiz, Question, Answer where:
Quizzes have Questions
and
Questions have answers.
I'm wanting to migrate this data from one Laravel instance to another (think multilingual) exact copy of database structure.
Is there a specific way to go about this in the Laravel world or is it just going to need me to write migration scripts. The problem being I need to maintain relationships but not ID's across the databases.
What I'm finding issue with at the moment is when I bring back my data for my quiz I can no longer access the relations once I switch to my new DB connection. Therefore I am having to build flat arrays of the related data to then loop through and save in the new DB.
Wondering how anybody else would approach this.
Please or to participate in this conversation.