/**
  * Execute the console command.
  *
  * @return mixed
  */
 public function handle()
 {
     try {
         if ($key = $this->argument('key')) {
             $value = Setting::get($key);
             if (Str::isNullOrEmptyString($value)) {
                 $this->comment("No setting found or empty setting.");
             } else {
                 if (is_array($value)) {
                     $value = Arr::dot($value);
                     foreach ($value as $key2 => $value2) {
                         $this->line("{$key}.{$key2}={$value2}");
                     }
                 } else {
                     $this->line($key . "=" . $value);
                 }
             }
         } else {
             $this->error("Missing 'key' argument.");
         }
     } catch (\Exception $ex) {
         $this->error("Exception: " . $ex->getMessage());
         $this->error("Stack trace: " . $ex->getTraceAsString());
     }
 }
 public function clear()
 {
     $settings = Setting::all();
     $settings = Arr::dot($settings);
     foreach ($settings as $key => $value) {
         $this->forget($key);
     }
     $this->save();
 }
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function handle()
 {
     try {
         $settings = Setting::all();
         $settings = Arr::dot($settings);
         foreach ($settings as $key => $value) {
             $this->line("{$key}={$value}");
         }
     } catch (\Exception $ex) {
         $this->error("Exception: " . $ex->getMessage());
         $this->error("Stack trace: " . $ex->getTraceAsString());
     }
 }