mortimer / db-setup
Laravel 4 package that adds the missing artisan commands db:setup, db:create, db:drop
Installs: 25
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/mortimer/db-setup
Requires
- php: >=5.4.0
- illuminate/support: >=4.2
This package is auto-updated.
Last update: 2025-10-10 01:49:26 UTC
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
-
Add
mortimer/db-setupas a requirement tocomposer.json:{ "require": { "mortimer/db-setup": "dev-master" } }
Update your packages with
composer updateor install withcomposer install. -
Add the service provider
Open
app/config/app.phpand add the following item to the service providers array:'Mortimer\DbSetup\DbSetupServiceProvider'
Commands
Three new artisan commands are now available:
-
db:createCreate the database for the current environment. -
db:dropDrop the database for the current environment. -
db:setupRun 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