You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provides a Graphical UI for [Laravel Surveillance](https://github.com/neelkanthk/laravel-surveillance) and integrates within your existing application.
13
+
14
+
## What is Laravel Surveillance?
15
+
16
+
Laravel Surveillance is a package to put malicious users, IP addresses and anonymous browser fingerprints under surveillance, write surveillance logs and block malicious ones from accessing the app. [Read more](https://github.com/neelkanthk/laravel-surveillance#laravel-surveillance-)
Laravel Surveillance provides a ```surveillance``` middleware that can be used on any route or route group to make it eligible for surveillance.
80
+
81
+
```php
82
+
Route::middleware(["surveillance"])->get('/path', function () {});
83
+
```
84
+
85
+
[Read more about middleware usage](https://github.com/neelkanthk/laravel-surveillance#middleware-usage)
86
+
87
+
## Accessing the Dashboard
88
+
89
+
The **Laravel Surveillance UI manager dashboard** can be accessed at: http://your.domain/surveillance/ui/manager
90
+
91
+
The **Laravel Surveillance UI logs dashboard** can be accessed at: http://your.domain/surveillance/ui/logs
92
+
93
+
## Customizing the package routes
94
+
95
+
### Customizing the route prefix
96
+
97
+
By default ```surveillance/ui``` route prefix is appended to the package's routes.
98
+
If you want to customize it then you can do so easily in the ```config/surveillance-ui.php``` file's file's _**prefix**_ key as shown below.
99
+
100
+
```php
101
+
/**
102
+
* The prefix to be used in the surveillance ui routes
103
+
*/
104
+
"prefix" => "surveillance/ui",
105
+
```
106
+
107
+
### Customizing the route middleware
108
+
109
+
By default ```web``` middleware is added to the package's routes. If you want to add more middlewares like ```auth``` or something else, then you can add them easily in the ```config/surveillance-ui.php``` file's _**middleware**_ key as shown below.
110
+
111
+
```php
112
+
/**
113
+
* The middleware(s) to be used in the surveillance ui routes
0 commit comments