Generate a new key if it doesn’t exist
This commit is contained in:
parent
f79d304586
commit
72eb3ce467
@ -5,6 +5,7 @@ namespace App\Console\Commands\Environment;
|
|||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
use Illuminate\Contracts\Console\Kernel;
|
use Illuminate\Contracts\Console\Kernel;
|
||||||
use App\Traits\Commands\EnvironmentWriterTrait;
|
use App\Traits\Commands\EnvironmentWriterTrait;
|
||||||
|
use Illuminate\Support\Facades\Artisan;
|
||||||
|
|
||||||
class AppSettingsCommand extends Command
|
class AppSettingsCommand extends Command
|
||||||
{
|
{
|
||||||
@ -113,6 +114,10 @@ class AppSettingsCommand extends Command
|
|||||||
|
|
||||||
$this->writeToEnvironment($this->variables);
|
$this->writeToEnvironment($this->variables);
|
||||||
|
|
||||||
|
if (!config('app.key')) {
|
||||||
|
Artisan::call('key:generate');
|
||||||
|
}
|
||||||
|
|
||||||
$this->info($this->console->output());
|
$this->info($this->console->output());
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user