setDefaultLanguage() публичный Метод

Set the default query language. It must be a valid language code.
public setDefaultLanguage ( string $language )
$language string
 /**
  * Register the application services.
  *
  * @return void
  */
 public function register()
 {
     app()->bind('TvDb', function () {
         $apiKey = env('TVDB_APIKEY', null);
         if (!$apiKey) {
             throw new \Exception('You need a TvDb API key.');
         }
         $cache = new FilesystemCache(storage_path() . '/TvDbCache');
         $ttl = 60 * 60 * 24;
         $httpClient = new CacheClient($cache, $ttl);
         $tvdb = new Client("http://thetvdb.com", $apiKey);
         $tvdb->setHttpClient($httpClient);
         $tvdb->setJsonDateFormat('d-m-Y');
         $tvdb->setDefaultLanguage('nl');
         return $tvdb;
     });
 }