Package Data | |
---|---|
Maintainer Username: | phurni |
Maintainer Contact: | phi@ruby-reactive.org (Pascal Hurni) |
Package Create Date: | 2015-01-24 |
Package Last Update: | 2015-01-25 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-22 15:00:06 |
Package Statistics | |
---|---|
Total Downloads: | 25 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
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.
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
.
Add the service provider
Open app/config/app.php
and add the following item to the service providers array:
'Mortimer\DbSetup\DbSetupServiceProvider'
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