Skip to content

Commit b85cda8

Browse files
authored
Mention support for newer versions of Laravel and alter restriction instructions appropriately
1 parent 7ea0ab3 commit b85cda8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 🚫 Laravel Route Restrictor
22

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.
44

55
## Setup
66

@@ -26,7 +26,7 @@ Alternatively, you can modify the global restriction username and password in yo
2626

2727
## Restricting specific routes
2828

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.
3030

3131
```php
3232
Route::group(['middleware' => 'routeRestrictor:username,password'], function () {
@@ -38,7 +38,7 @@ Note: If you have both route specific restrictions and a global restriction, bot
3838

3939
## Excluding specific routes from restriction
4040

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.
4242

4343
```php
4444
Route::group(['middleware' => 'routeRestrictor:disable'], function () {

0 commit comments

Comments
 (0)