Constants...

This commit is contained in:
2015-10-21 15:28:56 +02:00
parent 0b4efeb2ed
commit cb6056ecd7
3 changed files with 39 additions and 26 deletions

9
app/config/constants.php Normal file
View File

@@ -0,0 +1,9 @@
<?php
/**
* Laravel Constants
*/
return [
'tvdb' => [
'apikey' => 'b187f8d9c5e72b1faecb741d5d04239a'
]
];

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');
}