With this command, when your .env
file is configured, you can create your project database with php artisan db:create
when is the first time you clone your project.
To create this command, execute: php artisan make:command dbcreate
, and then , a file named dbcreate.php
will be generated in ./app/Console/Commands/dbcreate.php
, then just copy and paste the code of dbcreate.php file.