Update Eventlog WebUI/backend to use ajax (#9252)

* WIP Eventlog table

* Initial Eventlog rework

* fromdevice is not a request parameter

* updates

* remove unneeded field

* Cleanups
This commit is contained in:
Tony Murray
2018-09-24 02:07:00 -05:00
committed by Neil Lathwood
parent 602d8f531c
commit 6242f941f6
13 changed files with 642 additions and 88 deletions

View File

@@ -64,4 +64,9 @@ class Sensor extends BaseModel
{
return $this->belongsTo('App\Models\Device', 'device_id');
}
public function events()
{
return $this->morphMany(Eventlog::class, 'events', 'type', 'reference');
}
}