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

@@ -2,6 +2,7 @@
namespace App\Providers;
use Illuminate\Database\Eloquent\Relations\Relation;
use Illuminate\Support\Facades\Blade;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\ServiceProvider;
@@ -49,6 +50,8 @@ class AppServiceProvider extends ServiceProvider
return "<?php endif; ?>";
});
$this->configureMorphAliases();
// Development service providers
if ($this->app->environment() !== 'production') {
if (class_exists(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class)) {
@@ -73,4 +76,12 @@ class AppServiceProvider extends ServiceProvider
{
//
}
private function configureMorphAliases()
{
Relation::morphMap([
'interface' => \App\Models\Port::class,
'sensor' => \App\Models\Sensor::class,
]);
}
}