From 26d0044a80cca19502f2d2be39e1ce9fe4544602 Mon Sep 17 00:00:00 2001 From: Stephen Finney Date: Mon, 26 Mar 2018 14:08:07 -0400 Subject: [PATCH 1/5] Update dependencies --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 6943830..5dcacaf 100644 --- a/composer.json +++ b/composer.json @@ -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.*", From ee8351d70a779af32ba61fa3fcc90efda53d0e30 Mon Sep 17 00:00:00 2001 From: Stephen Finney Date: Mon, 26 Mar 2018 14:08:22 -0400 Subject: [PATCH 2/5] Add Gemnasium badge --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index bc30c20..19c8bd4 100644 --- a/readme.md +++ b/readme.md @@ -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. From 5a7bb84cc44a0060db3cc8d8b893926d6d0955cd Mon Sep 17 00:00:00 2001 From: Stephen Finney Date: Mon, 26 Mar 2018 14:08:30 -0400 Subject: [PATCH 3/5] Update grammar --- readme.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/readme.md b/readme.md index 19c8bd4..f90ead0 100644 --- a/readme.md +++ b/readme.md @@ -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 @@ -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 or greater Register the HTTP Stack Middleware for the web group in file `app/Http/Kernel.php`: @@ -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', [ From 8f84d6536734fc689c59833158f1b33ff11e2c32 Mon Sep 17 00:00:00 2001 From: Stephen Finney Date: Thu, 5 Apr 2018 15:57:59 -0400 Subject: [PATCH 4/5] Be specific about laravel versions --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index f90ead0..754e2c5 100644 --- a/readme.md +++ b/readme.md @@ -61,7 +61,7 @@ Register the HTTP Stack Middleware in file `app/Http/Kernel.php`: \Spinen\BrowserFilter\Stack\Filter::class, ``` -### Laravel 5.2 or greater +### Laravel 5.2 - 5.6 Register the HTTP Stack Middleware for the web group in file `app/Http/Kernel.php`: From 263bec8453783203ec5dfc8022fe257ca9a8d6c0 Mon Sep 17 00:00:00 2001 From: Stephen Finney Date: Thu, 5 Apr 2018 16:07:15 -0400 Subject: [PATCH 5/5] Bump version --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 3eefcb9..7dea76e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.0 +1.0.1