PHP code example of arkadiusjonczek / laravel-command-dbcreate

1. Go to this page and download the library: Download arkadiusjonczek/laravel-command-dbcreate library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

arkadiusjonczek / laravel-command-dbcreate example snippets


if (php_sapi_name() == 'cli' && getenv('APP_ENV') == 'local') {
    putenv('DB_HOST=127.0.0.1');
}
bash
php artisan db:create