Skip to content

Commit

Permalink
Merge branch 'release/1.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
ssfinney committed Apr 5, 2018
2 parents b493993 + 263bec8 commit bdd7d67
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0
1.0.1
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
}
],
"require": {
"php": ">=5.5.0",
"php": ">=5.5.9",
"illuminate/cache": "5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*",
"illuminate/routing": "5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*",
"illuminate/support": "5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*",
"mobiledetect/mobiledetectlib": "~2.8",
"ua-parser/uap-php": "~3.4.1"
"ua-parser/uap-php": "~3.5"
},
"require-dev": {
"illuminate/http": "5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*",
Expand Down
14 changes: 7 additions & 7 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Latest Stable Version](https://poser.pugx.org/spinen/laravel-browser-filter/v/stable)](https://packagist.org/packages/spinen/laravel-browser-filter)
[![Total Downloads](https://poser.pugx.org/spinen/laravel-browser-filter/downloads)](https://packagist.org/packages/spinen/laravel-browser-filter)
[![Latest Unstable Version](https://poser.pugx.org/spinen/laravel-browser-filter/v/unstable)](https://packagist.org/packages/spinen/laravel-browser-filter)
[![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)
[![Dependency Status](https://gemnasium.com/spinen/laravel-browser-filter.svg)](https://gemnasium.com/spinen/laravel-browser-filter)
[![License](https://poser.pugx.org/spinen/laravel-browser-filter/license)](https://packagist.org/packages/spinen/laravel-browser-filter)

This is a Laravel 5 middleware to filter routes based on browser types.
Expand Down Expand Up @@ -34,7 +34,7 @@ $ composer require spinen/laravel-browser-filter

### For >= Laravel 5.5, you are done with the Install

The package uses the auto registration feature
The package uses the auto registration feature.

### For < Laravel 5.5, you have to register the Service Provider

Expand All @@ -61,7 +61,7 @@ Register the HTTP Stack Middleware in file `app/Http/Kernel.php`:
\Spinen\BrowserFilter\Stack\Filter::class,
```

### Laravel 5.2, 5.3, 5.4 & 5.5
### Laravel 5.2 - 5.6

Register the HTTP Stack Middleware for the web group in file `app/Http/Kernel.php`:

Expand Down Expand Up @@ -103,15 +103,15 @@ $ php artisan vendor:publish --provider="Spinen\BrowserFilter\FilterServiceProvi
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...

1. type - The type of filtering strategy to apply to the stack filter
2. rules - The array of devices/browsers/versions to allow/block for *ALL* http request
2. rules - The array of devices/browsers/versions to allow or block for *ALL* http requests
3. route - The name of the route to redirect the user if they are using a blocked client
4. timeout - The length of time to cache the client, where "0" disables the cache
4. timeout - The length of time to cache the client data, where "0" disables the cache

## Using the Route middleware

The route middleware using the same configuration file as the stack middleware, but ignores the rules.
The route middleware uses the same configuration file as the stack middleware, but ignores the rules.

The rules are passed in after the ':' behind the router filter that you wish to use...
The rules are passed in after the ':' behind the route filter that you wish to use...

```php
Route::get('tablet_page', [
Expand Down

0 comments on commit bdd7d67

Please sign in to comment.