thedevdojo/voyager

doesn't find migration of laravel voyager project Yet !!

salmazz opened this issue · 3 comments

Laravel version

9.19

PHP version

8.0.2

Voyager version

1.7

Database

5.6

Description

If I have a project in another laptop and uploaded it to Git and pulled the project and did not find any mail or any data, what should I do?

Steps to reproduce

setup the project
create database tables
create bread
make complete crud
then upload it to the database
and then make pulled the project on another laptop
doesn't find any database when make migration and no breads !!

Expected behavior

when make migration get all the tables what i created before

Screenshots

No response

Additional context

No response

Voyager doesn't create or manage migrations. It would be a complicated challenge to get right while still being a more open option to people. Voyager's more of a tool, like a pretty myphpadmin, than a CMS, assisting development rather than being a site it a box.
You'd need to run backups of your database and dump/import or maintain a separate database source that each instance can connect to. The bread data itself is stored in the database.
There are also some migration generation packages, you can get to a point and then generate your required migrations, pruning them as required to get what you need for a "release".

I have encountered the same issues. This problem makes Voyager not the best option for big projects, as I can't rely on backing up my database every time I make a change to it.

"backing up my database every time I make a change to it."
I'd have to disagree there, you should be doing just that.