Reputation: 1123
i developed a Website using Laravel 5.5 and Voyager Admin panel. Now i want to deploy my website to a DigitalOcean server.
While developing I created tables via Voyagers Database Tool. I also set my relations between the tables there. This worked very well in my developing environment.
I pushed my final code of the website to a git repo and now i want to clone it on the liveserver.
Now my question:
Do I have do recreate all tables again via the voyager admin panel and set the relations between the tables new again? Because i didn't create migrations for the tables and only created tables through the voyager backend.Or will they automatically be set if i clone the repo and make an php artisan voyager:install
or an php artisan migrate
?
Would be nice if anybody already gained some experience with deploying voyager applications.
Best regards
Upvotes: 3
Views: 1084
Reputation: 1182
If you still didn't find any solution, you can try: Laravel Migrations Generator.
It will automatically generate migrations from an existing database schema.
Then you can do:
php artisan migrate
Hope, it will solve your problem.
Upvotes: 3