Neues Update
This commit is contained in:
@@ -7,7 +7,11 @@ class Comment extends Eloquent {
|
||||
return $this->belongsTo('User', 'user');
|
||||
}
|
||||
|
||||
public function film() {
|
||||
public function objekt() {
|
||||
return $this->belongsTo('Film', 'film');
|
||||
}
|
||||
|
||||
public function scopeNeueste($query) {
|
||||
return $query->orderBy('updated_at', 'DESC')->take(5);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user