/** * Execute the console command. * * @return mixed */ public function handle() { $action = $this->argument('action'); switch ($action) { case 'movie': $this->info('Load all movies to db'); $this->traktTv->setType('movies'); $this->traktTv->setExtended('full,images'); $this->traktTv->loadWatched(); $this->info('Done loading all movies to db'); break; default: echo 'Use movie'; } }
/** * Execute the console command. * * @return mixed */ public function handle() { $action = $this->argument('action'); switch ($action) { case 'movie': $this->info('Sync 10 latest movies to db'); $this->traktTv->setType('movies'); $this->traktTv->setExtended('full,images'); $this->traktTv->syncWatched($this); $this->info('Done syncing 10 latest movies to db'); break; default: echo 'Use movie'; } }