Constants...

This commit is contained in:
daniel committed 2015-10-21 15:28:56 +02:00
1 parent 0b4efeb2ed
commit cb6056ecd7
3 files changed
+39 -26

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
<?php
/**
* Laravel Constants
*/
return [
'tvdb' => [
'apikey' => 'b187f8d9c5e72b1faecb741d5d04239a'
]
];
+1
View File
@@ -24,6 +24,7 @@ Route::get('/', function()
$tmdb = new TMDb(Config::get('constants.tvdb.apikey'), 'de', TRUE);
foreach(array("top" => $mg[0], "neu" => $vorgeschlagen[0], "alt" => $gesehen[0]) as $key => $val) {
$tmovie = $tmdb->getMovie($val->tvdbid);
dd($tmovie);
$images[$key] = $tmdb->getImageUrl($tmovie['poster_path'], TMDb::IMAGE_POSTER, 'w342');
}