filter items by event
This commit is contained in:
parent
77450dfff9
commit
8d611a625b
3 changed files with 30 additions and 14 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue