Constants...
This commit is contained in:
9
app/config/constants.php
Normal file
9
app/config/constants.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
/**
|
||||
* Laravel Constants
|
||||
*/
|
||||
return [
|
||||
'tvdb' => [
|
||||
'apikey' => 'b187f8d9c5e72b1faecb741d5d04239a'
|
||||
]
|
||||
];
|
@@ -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');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user