jaybizzle/laravel-migrations-organiser 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jaybizzle/laravel-migrations-organiser

最新稳定版本:v7.0.0

Composer 安装命令:

composer require jaybizzle/laravel-migrations-organiser

包简介

A Laravel package to help organise migration files.

README 文档

README

Total Downloads

The number of migrations in any sized project can quickly become huge, and although they are ordered, having one big list can sometimes be inconvenient and slow to navigate.

This package will put your migrations in yyyy/mm folders e.g.

./database/migrations/2015/03/2015_03_25_210946_create_users_table.php

Versions

  • Laravel 5.3-6.* use v4.*
  • Laravel 7.* use v5.*
  • Laravel 8, 9, 10 use v6.*
  • Laravel 11, 12 use v7.*

Installation

composer require jaybizzle/laravel-migrations-organiser

Add the following to the providers array in your config/app.php file..

    Jaybizzle\MigrationsOrganiser\MigrationsOrganiserServiceProvider::class,

Laravel ^5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider

Usage

This package hooks into the default artisan make:migration command. Just use that as you normally would and the package takes care of the rest.

What if I have already created migrations

No problem, just run artisan migrate:organise and your migrations will be moved into the relevant yyyy/mm folders.

I want my migrations back to how they were

Again, no problem. Running artisan migrate:disorganise will move all migrations from the yyyy/mm folder structure into the base migrations folder. Add the --force option to delete left over folders without confirmation.

Analytics

统计信息

  • 总下载量: 389.23k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 115
  • 点击次数: 1
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 112
  • Watchers: 5
  • Forks: 18
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-30