From 69b811097ddd66248ea0124802140e618c378ce7 Mon Sep 17 00:00:00 2001 From: Mark Jayson Fuentes Date: Tue, 2 Feb 2016 03:10:22 +0800 Subject: [PATCH] redid readme --- README.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 7b6b7dab6..59bd4d34d 100644 --- a/README.md +++ b/README.md @@ -17,21 +17,22 @@ I've been looking for an equivalent for Laravel but did not find any so this is Various versions of api-guard: -**Laravel 5.2.x**: `~3.*` (Additional steps for making it work on Laravel 5.2 was outlined by @muya on https://blog.muya.co.ke/api-guard-laravel-5-2/) +**Laravel 5.2.x**: `~3.*` -For this to work in Laravel 5.2, add the apiguard middleware to the $routeMiddleware array in app/Http/Kernel.php as shown below: +NOTE: For this to work in Laravel 5.2, add the apiguard middleware to the `$routeMiddleware` array in `app/Http/Kernel.php` as shown below: ``` - \Chrisbjr\ApiGuard\Http\Middleware\ApiGuard::class, - ... -]; + protected $routeMiddleware = [ + ... + 'apiguard' => \Chrisbjr\ApiGuard\Http\Middleware\ApiGuard::class, + ... + ]; ?> ``` +Thanks @muya on https://blog.muya.co.ke/api-guard-laravel-5-2/ + **Laravel 5.1.x**: `~2.*` **Laravel 4.2.x**: [`~1.*`](https://github.com/chrisbjr/api-guard/tree/laravel4) (Recently updated version for Laravel 4. Please note that there are namespace changes here)