dev-master
9999999-devLaravel 4 package that adds the missing artisan commands db:setup, db:create, db:drop
MIT
The Requires
- php >=5.4.0
- illuminate/support >=4.2
by Pascal Hurni
database laravel artisan db
Wallogit.com
2017 © Pedro Peláez
Laravel 4 package that adds the missing artisan commands db:setup, db:create, db:drop
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)
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)
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)
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
Laravel 4 package that adds the missing artisan commands db:setup, db:create, db:drop
MIT
database laravel artisan db