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
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# 🚫 Laravel Route Restrictor
2
2
3
-
Laravel Route Restrictor is a middleware package designed to restrict a entire site or specific routes using HTTP basic authentication. It is compatible with Laravel 5.1 or above.
3
+
Laravel Route Restrictor is a middleware package designed to restrict a entire site or specific routes using HTTP basic authentication. It is compatible with Laravel 5.1 to 5.6.
4
4
5
5
## Setup
6
6
@@ -26,7 +26,7 @@ Alternatively, you can modify the global restriction username and password in yo
26
26
27
27
## Restricting specific routes
28
28
29
-
To restrict specific routes, you must edit your routing file at `app/Http/routes.php`. Simply surround the route or routes you want to restrict with the following route group code. Ensure you change the `username` and `password` middleware parameters.
29
+
To restrict specific routes, you must edit your routes file. Simply surround the route or routes you want to restrict with the following route group code. Ensure you change the `username` and `password` middleware parameters.
30
30
31
31
```php
32
32
Route::group(['middleware' => 'routeRestrictor:username,password'], function () {
@@ -38,7 +38,7 @@ Note: If you have both route specific restrictions and a global restriction, bot
38
38
39
39
## Excluding specific routes from restriction
40
40
41
-
If you wish to exclude one or more routes from restriction, you must edit your routing file at `app/Http/routes.php`. Simply surround the route or routes you want to exclude with the following route group code.
41
+
If you wish to exclude one or more routes from restriction, you must edit your routes file. Simply surround the route or routes you want to exclude with the following route group code.
42
42
43
43
```php
44
44
Route::group(['middleware' => 'routeRestrictor:disable'], function () {
0 commit comments