+Bewertungen, Meistgewünschter Film, Sortierung nach Votes
This commit is contained in:
1 parent
521ecc46c1
commit
fb74d68046
11 files changed
+264
-20
No files matched your search
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
class News extends Eloquent {
|
||||
protected $table = "news";
|
||||
|
||||
public function ersteller() {
|
||||
return $this->belongsTo('User', 'author');
|
||||
}
|
||||
|
||||
public function scopeAktuell($query) {
|
||||
return $query->orderBy('updated_at', 'DESC')->take(5);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user