Skip to content

Commit

Permalink
Install it as regular dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Jul 20, 2022
1 parent ba65e23 commit 82579fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Foundation/Console/ShowModelCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function __construct(Composer $composer)
public function handle()
{
if (! interface_exists('Doctrine\DBAL\Driver')) {
if (! $this->components->confirm('Displaying model information requires [doctrine/dbal]. Do you wish to install it as a dev dependency?')) {
if (! $this->components->confirm('Displaying model information requires [doctrine/dbal]. Do you wish to install it?')) {
return 1;
}

Expand Down Expand Up @@ -457,7 +457,7 @@ protected function columnIsUnique($column, $indexes)
protected function installDependencies()
{
$command = collect($this->composer->findComposer())
->push('require doctrine/dbal --dev')
->push('require doctrine/dbal')
->implode(' ');

$process = Process::fromShellCommandline($command, null, null, null, null);
Expand Down

0 comments on commit 82579fe

Please sign in to comment.