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.
84
+
85
+
```php
86
+
Route::middleware(["surveillance"])->get('/path', function () {});
87
+
```
88
+
89
+
[Read more about middleware usage](https://github.com/neelkanthk/laravel-surveillance#middleware-usage)
90
+
91
+
## Accessing the Dashboard
92
+
93
+
The **Laravel Surveillance UI manager dashboard** can be accessed at: http://your.domain/surveillance/ui/manager
94
+
95
+
The **Laravel Surveillance UI logs dashboard** can be accessed at: http://your.domain/surveillance/ui/logs
96
+
97
+
## Customizing the package routes
98
+
99
+
### Customizing the route prefix
100
+
101
+
By default ```surveillance/ui``` route prefix is appended to the package's routes.
102
+
103
+
If you want to customize it then you can do so easily in the ```config/surveillance-ui.php``` file's _**prefix**_ key as shown below.
104
+
105
+
```php
106
+
/**
107
+
* The prefix to be used in the surveillance ui routes
108
+
*/
109
+
"prefix" => "surveillance/ui",
110
+
```
111
+
112
+
### Customizing the route middleware
113
+
114
+
By default ```web``` middleware is added to the package's routes.
115
+
116
+
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.
117
+
118
+
```php
119
+
/**
120
+
* The middleware(s) to be used in the surveillance ui routes
0 commit comments