New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

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:dev-master
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

aedart/athenaeum-database

Database utilities for Laravel

24,794 0
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,976 2
spresnac/laravel-artisan-database-helper

Some useful helper to handle database backup & restores

3,736
maxim-oleinik/blade-migrations

Raw SQL database migration tool for PHP apps

2,334 0