diff --git a/src/Litepie/Install/Installers/Scripts/ProtectInstaller.php b/src/Litepie/Install/Installers/Scripts/ProtectInstaller.php index 9212f440..68d40ba7 100644 --- a/src/Litepie/Install/Installers/Scripts/ProtectInstaller.php +++ b/src/Litepie/Install/Installers/Scripts/ProtectInstaller.php @@ -4,24 +4,10 @@ use Exception; use Illuminate\Console\Command; -use Illuminate\Filesystem\Filesystem; use Litepie\Install\Installers\SetupScript; class ProtectInstaller implements SetupScript { - /** - * @var Filesystem - */ - protected $finder; - - /** - * @param Filesystem $finder - */ - public function __construct(Filesystem $finder) - { - $this->finder = $finder; - } - /** * Fire the install script. * @@ -33,9 +19,7 @@ public function __construct(Filesystem $finder) */ public function fire(Command $command) { - $currentKey = config('app.key'); - - if (strlen($currentKey) !== 0) { + if (config('app.env')=='production') { $command->alert('Application In Production!'); if (!$command->confirm('Do you really wish to continue the installation?')) {