承接 mortimer/db-setup 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

mortimer/db-setup

Composer 安装命令:

composer require mortimer/db-setup

包简介

Laravel 4 package that adds the missing artisan commands db:setup, db:create, db:drop

README 文档

README

Laravel 4 package that adds the missing artisan commands db:setup, db:create, db:drop

Copyright (C) 2015 Pascal Hurni <https://github.com/phurni>

Licensed under the MIT License.

Installation

  1. Add mortimer/db-setup as a requirement to composer.json:

    {
        "require": {
            "mortimer/db-setup": "dev-master"
        }
    }

    Update your packages with composer update or install with composer install.

  2. Add the service provider

    Open app/config/app.php and add the following item to the service providers array:

    'Mortimer\DbSetup\DbSetupServiceProvider'
    

Commands

Three new artisan commands are now available:

  • db:create Create the database for the current environment.

  • db:drop Drop the database for the current environment.

  • db:setup Run a batch of other artisan commands: db:create, migrate, db:seed

The command you will use the most is db:setup, this is the typical command you run when grabbing an existing project, run it just after composer install or composer update, but don't forget to set the database config just before.

php artisan db:setup

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-25