Skip to content

Commit

Permalink
Bugfix with composer scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyyb authored Apr 9, 2020
2 parents adecc21 + 62a5c34 commit f82c777
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
13 changes: 1 addition & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
4 changes: 1 addition & 3 deletions src/Console/Database/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit f82c777

Please sign in to comment.