dotenvEditor = $dotenvEditor; } public function handle() { if (config('jwt.secret')) { $this->comment('JWT secret exists -- skipping'); return; } $this->info('Generating JWT secret'); $this->dotenvEditor->setKey('JWT_SECRET', Str::random(32))->save(); } }