Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

267
Vistas
laravel 8 don't run migrate file in packages folder

When run 'php artisan migrate' in windows os: laravel migrate all file (\database\migrations in root folder and in packages folder). But in Linux os just migrate file in \database\migrations of root folder. I have Database\migrations folder in packages folder and use the loadMigrationsFrom method in function boot() of service provider class. How do I can migrate all files in Linux?

over 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

I think the only way to do it right now is to manually go through all the migrations. You have to run the migration command on each of your sub-folders:

php artisan migrate --path=database/migrations/folder_name*

or you can add this to boot method in AppServiceProvider:

$mainPath = database_path('migrations'); $directories = glob($mainPath . '/*' , GLOB_ONLYDIR); $paths = array_merge([$mainPath], $directories);

$this->loadMigrationsFrom($paths);

over 4 years ago · Santiago Trujillo Denunciar

0

You can give path to your migrate function like

php artisan migrate --path=database/migrations/packages
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda