Skip to content

Commit

Permalink
redid readme
Browse files Browse the repository at this point in the history
  • Loading branch information
awkwardusername committed Feb 1, 2016
1 parent e616a43 commit 69b8110
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

```
<?php
protected $routeMiddleware = [
...
'apiguard' => \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)
Expand Down

0 comments on commit 69b8110

Please sign in to comment.