From 62a5c34132f171b50d18afdc21b4ed074485aa25 Mon Sep 17 00:00:00 2001 From: Tony BOTALLA Date: Thu, 9 Apr 2020 09:43:01 +0200 Subject: [PATCH] Remove return value --- README.md | 13 +------------ src/Console/Database/Create.php | 4 +--- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 9bca271..7b5f177 100644 --- a/README.md +++ b/README.md @@ -21,20 +21,9 @@ For Laravel >=5.5.0 and < 5.7 please use 0.3 version. In your terminal: ```sh -composer install novius/laravel-artisan-commands +composer require novius/laravel-artisan-commands ``` -Then, if you are on Laravel 5.4 (no need for Laravel 5.5 and higher), register the service provider to your `config/app.php` file: - -```php -'providers' => [ - ... - Novius\ArtisanCommands\ArtisanCommandsServiceProvider::class, -]; -``` - - - ## Usage & Features #### `db:configure` diff --git a/src/Console/Database/Create.php b/src/Console/Database/Create.php index 2117b4b..fc93bce 100644 --- a/src/Console/Database/Create.php +++ b/src/Console/Database/Create.php @@ -65,10 +65,8 @@ public function handle() // We have to clear database name config (and rollback it then), otherwise DB::unprepared() tries to connect // (and throw an "Unknown database" error) $this->changeDatabaseName(''); - $sqlExec = DB::unprepared('CREATE DATABASE IF NOT EXISTS '.(string) $databaseName); + DB::unprepared('CREATE DATABASE IF NOT EXISTS '.(string) $databaseName); $this->changeDatabaseName($databaseName); - - return $sqlExec; } /**