app/Console/Commands/SyncMedia.php
/**
     * Execute the console command.
     *
     * @return mixed
     */
Execute the console command.
@return mixed
Execute the console command . @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);
    }
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 ) ; }
Execute the console command.
Execute the console command .