PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Blocks

    Design blocks for your website

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

Question By
Unsolved

Seed and migrationfiles creation

frode-meling

May 6th, 2019 09:59 AM

when developing an application with Voyager, it should have created migration-files and also seed-files as long as environment is local. Then its much easier to develop locally and rollout to production without having to export and import database.

bobbyiliev

Dec 21st, 2022 02:50 AM

Hi there,

I am just following up on some of the old unanswered questions on the site.

Indeed, this has been an open question for Voyager for quite a while.

There has been a discussion about it on the official Voyager repo here:

How to migrate BREAD from dev to prod?

Some suggestions are:

  • Use a package like this one here: https://github.com/Xethron/migrations-generator.
  • Export the key tables such as those for the menus, bread and roles and then import them in production (making sure maintenance mode is on, of course).
  • If you don't want to use a package, manually re-create your menus.

Hope that this helps!

Best,

Bobby

Source