filter items by event in Controller
This commit is contained in:
parent
f5725cfde7
commit
b978b2bc0b
3 changed files with 7 additions and 7 deletions
|
@ -23,9 +23,6 @@ class Item extends Model
|
|||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $hidden = ['created_at','updated_at'];
|
||||
protected $hidden = ['created_at','updated_at', 'deleted_at', 'eid'];
|
||||
|
||||
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