mortimer/db-setup

Laravel 4 package that adds the missing artisan commands db:setup, db:create, db:drop
25 2
Install
composer require mortimer/db-setup
PHP:>=5.4.0
License:MIT
Last Updated:Jan 25, 2015
Links: GitHub  ·  Packagist
Maintainer: phurni

DbSetup

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

Related Packages

rolice/laravel-db-switch

Simple and light DB switcher for Laravel.

1,863 3
arcanedev/laravel-settings

This package allows you to persists configs/settings for Laravel projects.

140,733 74
spatie/laravel-translation-loader

Store your language lines in the database, yaml or other sources

3,368,254 852
nobodyiscertain/laravel-db-commands

A set of Artisan commands to help with database tasks.

2,235 1
nicklayb/laravel-db-import

Laravel database import package for easy manipulations

9,806 2