filter items by event

This commit is contained in:
j3d1 2019-12-01 18:30:25 +01:00
parent 77450dfff9
commit 8d611a625b
3 changed files with 30 additions and 14 deletions

View file

@ -24,4 +24,8 @@ class Item extends Model
* @var array
*/
protected $hidden = [];
public static function byEvent($event){
return DB::table('users')->join('events', 'users.eid', '=', 'events.eid')->get();
}
}