LaravelPackages.net
Acme Inc.
Toggle sidebar
thtg88/laravel-db-scaffold-commands

Scaffold a DB with the given Laravel Artisan commands.

10.870
0
v0.7.0
About thtg88/laravel-db-scaffold-commands

thtg88/laravel-db-scaffold-commands is a Laravel package for scaffold a db with the given laravel artisan commands.. It currently has 0 GitHub stars and 10.870 downloads on Packagist (latest version v0.7.0). Install it with composer require thtg88/laravel-db-scaffold-commands. Discover more Laravel packages by thtg88 or browse all Laravel packages to compare alternatives.

Last updated

Laravel DB Scaffold Commands

Create and drop a MySQL or PostgreSQL DB with the given Laravel Artisan commands.

Installation

composer require --dev thtg88/laravel-db-scaffold-commands

Usage

Create Database

php artisan db:create database_name

This will use the connection details specified in your .env file.

Drop Database

php artisan db:drop

This will use the connection details specified in your .env file, including the database name.

Development

Clone the repo

# clone the repo
$ git clone https://github.com/thtg88/laravel-db-scaffold-commands.git

Add thhtg88/laravel-db-scaffold-commands as a dependency of your API project in composer.json:

{
    ...
    "repositories": [
        {
            "type": "path",
            "url": "../laravel-db-scaffold-commands"
        }
    ],
    "require": {
        ...
        "thtg88/laravel-db-scaffold-commands": "*"
    },
    ...
}

Next from your terminal run:

# Run composer update to bring in Laravel DB Scaffold Commands as dependancy
composer update

Tests

Laravel DB Scaffold Commands uses PHPUnit for testing.

You can run the whole tests suite using:

composer run-script test

# or
composer test

# or
./vendor/bin/phpunit

License

Laravel DB Scaffold Commands is open-sourced software licensed under the MIT license.

Star History Chart