App\Console\Commands\SettingAllCommand::handle PHP Method

handle() public method

Execute the console command.
public handle ( ) : mixed
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());
        }
    }
SettingAllCommand