javimanga/initdb

Package that helps with a series of commands to create, delete, and clone a database.

Installs: 69

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/javimanga/initdb

dev-master 2019-12-23 13:50 UTC

This package is auto-updated.

Last update: 2025-12-24 03:37:47 UTC


README

Package that helps with a series of commands to create, delete, and clone a database.

Install InitDB:

$ composer require javimanga/initdb

Add line to config/app.php:

JaviManga\InitDB\InitDBServiceProvider::class

Commands

Create database with name of .env, if you pass parameter {seed} it will also insert the seeders:

$ php artisan database:init {seed?}

Create database, if no parameter {name} is passed it will create the database from the .env file:

$ php artisan database:create {name?}

Delete database, if no parameter {name} is passed it will delete the database from the .env file:

$ php artisan database:drop {name?}

Clone the database of the .env file with the name of the parameter {new_name}:

$ php artisan database:clone {new_name?}