Downloads
Stars
Version
Create and drop a MySQL or PostgreSQL DB with the given Laravel Artisan commands.
composer require --dev thtg88/laravel-db-scaffold-commands
php artisan db:create database_name
This will use the connection details specified in your .env
file.
php artisan db:drop
This will use the connection details specified in your .env
file, including the database name.
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
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
Laravel DB Scaffold Commands is open-sourced software licensed under the MIT license.