3

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

Lukas
  • 1,053
  • 8
  • 24

1 Answers1

3

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.

user33192
  • 1,012
  • 1
  • 13
  • 21
  • You can use the following package for new laravel versions: https://github.com/kitloong/laravel-migrations-generator – Zacktamondo Apr 23 '21 at 20:08