Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 1 addition & 17 deletions src/Litepie/Install/Installers/Scripts/ProtectInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand All @@ -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?')) {
Expand Down