Voyager: How to copy tables and its data from database to Git for others to use?

Created on 17 May 2018  路  6Comments  路  Source: the-control-group/voyager

  • Laravel Version: 5.6
  • Voyager Version: 1.1.1
  • PHP Version: 7
  • Database Driver & Version: MySQL

Description:

I am creating testing project where me and my co-worker have to work together. I created product tables and added data into my local database. Now, how I can copy tables and its data to my co-workers local database where as soon as he git pulls it, it should load to his system with all my table and its data in voyager dashboard.

I am new to Laravel and Laravel Voyager, help me out in this..

Steps To Reproduce:

question

Most helpful comment

I am using now migration generator plugin and voyager bread generator hooks for this process. Its really tedious job and its not user friendly. I feel this is the major drawback for voyager framework.

Thanks for the reply @MrCrayon and @fletch3555.

All 6 comments

You need to create migrations for table structure https://laravel.com/docs/5.6/migrations and seeders for data https://laravel.com/docs/5.6/seeding.
You can have a look at the source code of this project under migrations and publishable.

@MrCrayon is correct. Voyager does not (currently) provide a method for exporting these, so you will have to do it yourself (either manually or through another package)

I am using now migration generator plugin and voyager bread generator hooks for this process. Its really tedious job and its not user friendly. I feel this is the major drawback for voyager framework.

Thanks for the reply @MrCrayon and @fletch3555.

@lohiloki what migration plugin are you using?

migration generator plugin -> https://github.com/Xethron/migrations-generator

This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.

Was this page helpful?
0 / 5 - 0 ratings