3
3
[ ![ Latest Stable Version] ( https://poser.pugx.org/spinen/laravel-browser-filter/v/stable )] ( https://packagist.org/packages/spinen/laravel-browser-filter )
4
4
[ ![ Total Downloads] ( https://poser.pugx.org/spinen/laravel-browser-filter/downloads )] ( https://packagist.org/packages/spinen/laravel-browser-filter )
5
5
[ ![ Latest Unstable Version] ( https://poser.pugx.org/spinen/laravel-browser-filter/v/unstable )] ( https://packagist.org/packages/spinen/laravel-browser-filter )
6
- [ ![ Dependency Status] ( https://www.versioneye. com/php/ spinen: laravel-browser-filter/0.1.1/badge. svg )] ( https://www.versioneye. com/php/ spinen: laravel-browser-filter/0.1.1 )
6
+ [ ![ Dependency Status] ( https://gemnasium. com/spinen/ laravel-browser-filter. svg )] ( https://gemnasium. com/spinen/ laravel-browser-filter )
7
7
[ ![ License] ( https://poser.pugx.org/spinen/laravel-browser-filter/license )] ( https://packagist.org/packages/spinen/laravel-browser-filter )
8
8
9
9
This is a Laravel 5 middleware to filter routes based on browser types.
@@ -34,7 +34,7 @@ $ composer require spinen/laravel-browser-filter
34
34
35
35
### For >= Laravel 5.5, you are done with the Install
36
36
37
- The package uses the auto registration feature
37
+ The package uses the auto registration feature.
38
38
39
39
### For < Laravel 5.5, you have to register the Service Provider
40
40
@@ -61,7 +61,7 @@ Register the HTTP Stack Middleware in file `app/Http/Kernel.php`:
61
61
\Spinen\BrowserFilter\Stack\Filter::class,
62
62
```
63
63
64
- ### Laravel 5.2, 5.3, 5.4 & 5.5
64
+ ### Laravel 5.2 - 5.6
65
65
66
66
Register the HTTP Stack Middleware for the web group in file ` app/Http/Kernel.php ` :
67
67
@@ -103,15 +103,15 @@ $ php artisan vendor:publish --provider="Spinen\BrowserFilter\FilterServiceProvi
103
103
This file is fully documented, so please read it to know how to configure the middleware. There are 4 top level items that you can configure...
104
104
105
105
1 . type - The type of filtering strategy to apply to the stack filter
106
- 2 . rules - The array of devices/browsers/versions to allow/ block for * ALL* http request
106
+ 2 . rules - The array of devices/browsers/versions to allow or block for * ALL* http requests
107
107
3 . route - The name of the route to redirect the user if they are using a blocked client
108
- 4 . timeout - The length of time to cache the client, where "0" disables the cache
108
+ 4 . timeout - The length of time to cache the client data , where "0" disables the cache
109
109
110
110
## Using the Route middleware
111
111
112
- The route middleware using the same configuration file as the stack middleware, but ignores the rules.
112
+ The route middleware uses the same configuration file as the stack middleware, but ignores the rules.
113
113
114
- The rules are passed in after the ':' behind the router filter that you wish to use...
114
+ The rules are passed in after the ':' behind the route filter that you wish to use...
115
115
116
116
``` php
117
117
Route::get('tablet_page', [
0 commit comments