Stats
This commit is contained in:
@@ -53,4 +53,10 @@ class Film extends Eloquent {
|
||||
|
||||
}
|
||||
|
||||
public function getPoster() {
|
||||
$tmdb = new TMDb(Config::get('constants.tvdb.apikey'), 'de', TRUE);
|
||||
$tmovie = $tmdb->getMovie($this->tvdbid);
|
||||
return $tmdb->getImageUrl($tmovie['poster_path'], TMDb::IMAGE_POSTER, 'w342');
|
||||
}
|
||||
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
class Vote extends Eloquent {
|
||||
protected $table = "votes";
|
||||
|
||||
public function film() {
|
||||
public function oFilm() {
|
||||
return $this->belongsTo('Film', 'film');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user