Stats
This commit is contained in:
1 parent
4f8a382b51
commit
0b4efeb2ed
7 files changed
+622
-412
No files matched your search
@@ -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');
|
||||
}
|
||||
|
||||
}
|
||||
+1
-1
@@ -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