App\Console\Commands\SettingClearCommand::handle PHP 메소드

handle() 공개 메소드

Execute the console command.
public handle ( ) : mixed
리턴 mixed
    public function handle()
    {
        try {
            Setting::clear();
            Setting::save();
            $this->info("Settings cleared.");
        } catch (\Exception $ex) {
            $this->error("Exception: " . $ex->getMessage());
            $this->error("Stack trace: " . $ex->getTraceAsString());
        }
    }
SettingClearCommand