Skip to content

Commit

Permalink
#116. Change middleware to FormRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurkushman committed Nov 16, 2018
1 parent 9005a21 commit 8c58be6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ The state of the server will not be changed by a request if any individual opera
In ```QueryParams``` RAML types you can declare the ```access_token``` property, that will be placed to ```Modules/{ModuleName}/Config/config.php```.
Generator will create ```app/Http/FormRequest/ApiAccessToken.php``` global FormRequest.

To activate this check on every request - add ApiAccessToken FormRequest to ```app/Http/FormRequest/Kernel.php```, ex.:
To activate this check on every request - add ApiAccessToken FormRequest to ```app/Http/Kernel.php```, ex.:
```php
class Kernel extends HttpKernel
{
Expand All @@ -809,7 +809,7 @@ class Kernel extends HttpKernel
*/
protected $middleware = [
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
\App\Http\Middleware\ApiAccessToken::class,
\App\Http\Requests\ApiAccessToken::class,
];
```
Generated configuration part:
Expand Down

0 comments on commit 8c58be6

Please sign in to comment.