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

handle() public method

Execute the console command.
public handle ( ) : mixed
return mixed
    public function handle()
    {
        if (!Setting::get('media_path')) {
            $this->error("Media path hasn't been configured. Exiting.");
            return;
        }
        if (!($record = $this->argument('record'))) {
            $this->syncAll();
            return;
        }
        $this->syngle($record);
    }