marceloxp/laravel_commands

此包已被废弃且不再维护。未建议任何替代包。

Laravel Artisan 命令工具

1.0.21 2019-03-20 16:40 UTC

This package is auto-updated.

Last update: 2022-08-26 05:56:04 UTC


README

Laravel Artisan Command Utilities v1.0.21

屏幕

Screen

安装

composer require marceloxp/laravel_commands

使用方法

php artisan xp

本地开发测试

package.json

    "repositories":
    {
        "dev-package":
        {
            "type": "path",
            "url": "~/git/laravel_commands",
            "options":
            {
                "symlink": true
            }
        }
    },

命令

迁移

  • 状态
  • 使用模型创建迁移
  • 创建自定义迁移
  • 预览
  • 回滚
  • 执行迁移
  • 删除所有表并迁移

模型

  • 简单的外键
  • 规则生成器

种子

  • 创建
  • 执行一个
  • 执行所有

系统

  • Composer Dump-Autoload
  • Apache 重载(Linux)

数据库

  • 显示配置(从 .env)
  • 显示表
  • 显示表字段
  • 显示表字段(CSV格式)
  • 导出数据库