2019-11-15 21:26:54 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
2019-11-28 03:52:53 +00:00
|
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
2019-11-15 21:26:54 +00:00
|
|
|
|
|
|
|
class Item extends Model
|
|
|
|
{
|
|
|
|
|
2019-11-28 03:52:53 +00:00
|
|
|
use SoftDeletes;
|
2019-11-15 21:26:54 +00:00
|
|
|
/**
|
|
|
|
* The attributes that are mass assignable.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $fillable = [
|
2019-11-28 03:52:53 +00:00
|
|
|
'iid', 'item_uid', 'bezeichnung', 'wann', 'wo', 'eid', 'cid'
|
2019-11-15 21:26:54 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The attributes excluded from the model's JSON form.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $hidden = [];
|
2019-12-01 17:30:25 +00:00
|
|
|
|
|
|
|
public static function byEvent($event){
|
|
|
|
return DB::table('users')->join('events', 'users.eid', '=', 'events.eid')->get();
|
|
|
|
}
|
2019-11-28 03:52:53 +00:00
|
|
|
}
|