2017 © Pedro Peláez
 

library db-setup

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

image

mortimer/db-setup

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

  • Sunday, January 25, 2015
  • by phurni
  • Repository
  • 1 Watchers
  • 2 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

DbSetup

Laravel 4 package that adds the missing artisan commands db:setup, db:create, db:drop, (*1)

Copyright (C) 2015 Pascal Hurni https://github.com/phurni" title="See online https://github.com/phurni">https://github.com/phurni, (*2)

Licensed under the MIT License., (*3)

Installation

  1. Add mortimer/db-setup as a requirement to composer.json:, (*4)

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

    Update your packages with composer update or install with composer install., (*5)

  2. Add the service provider, (*6)

    Open app/config/app.php and add the following item to the service providers array:, (*7)

    'Mortimer\DbSetup\DbSetupServiceProvider', (*8)

Commands

Three new artisan commands are now available:, (*9)

  • db:create Create the database for the current environment., (*10)

  • db:drop Drop the database for the current environment., (*11)

  • db:setup Run a batch of other artisan commands: db:create, migrate, db:seed, (*12)

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., (*13)

php artisan db:setup

The Versions

25/01 2015

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

 

by Pascal Hurni

database laravel artisan db