diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index cd70a3e..f01a8af 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -26,7 +26,11 @@ public function boot() { $this->publishes([ self::CONFIG_PATH => config_path('notifex.php'), - ]); + ], 'config'); + + $this->publishes([ + __DIR__ . '/resources/views' => resource_path('views/vendor/notifex'), + ], 'notifex-views'); $this->loadMigrationsFrom(__DIR__ . '/migrations'); diff --git a/src/resources/views/error.blade.php b/src/resources/views/error.blade.php index d6d9659..70947b5 100644 --- a/src/resources/views/error.blade.php +++ b/src/resources/views/error.blade.php @@ -66,7 +66,19 @@ Full URI {{ app('request')->fullUrl() }} + + Client IP + {{ app('request')->getClientIp() ?? '127.0.0.1' }} + + + User ID + {{ auth()->user()->id ?? 'Guest' }} + + + +
+ @foreach(app('request')->all() as $key => $value)
{{ $key }}