mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
committed by
Neil Lathwood
parent
602d8f531c
commit
6242f941f6
@@ -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,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user