Commit 47ea177b authored by John Elliott's avatar John Elliott

Tell users about the -f force flag for the asgard installer if the /.env file already exists

parent a8f63696
...@@ -31,7 +31,7 @@ class ProtectInstaller implements SetupScript ...@@ -31,7 +31,7 @@ class ProtectInstaller implements SetupScript
public function fire(Command $command) public function fire(Command $command)
{ {
if ($this->finder->isFile('.env') && ! $command->option('force')) { if ($this->finder->isFile('.env') && ! $command->option('force')) {
throw new Exception('Asgard has already been installed. You can already log into your administration.'); throw new Exception('Asgard has already been installed. You can already log into your administration. Run \'php artisan asgard:install -f\' to force replace the .env file.');
} }
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment