From 82579fe7f8937013a8b259f8511e431c2f2315f9 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Wed, 20 Jul 2022 10:36:06 +0100 Subject: [PATCH] Install it as regular dependency --- src/Illuminate/Foundation/Console/ShowModelCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Illuminate/Foundation/Console/ShowModelCommand.php b/src/Illuminate/Foundation/Console/ShowModelCommand.php index c6ad9d0f7e45..280b9dbf7809 100644 --- a/src/Illuminate/Foundation/Console/ShowModelCommand.php +++ b/src/Illuminate/Foundation/Console/ShowModelCommand.php @@ -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; } @@ -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);