Skip to content

Commit

Permalink
Updating the docs (Configuration section)
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanedev-maroc committed Apr 7, 2017
1 parent 1378f3c commit 3e31767
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions _docs/2.Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ return [
```

## Route

```php
<?php

Expand All @@ -112,17 +113,19 @@ return [
```

By default no middleware is added to `log-viewer` route. If you need middlewares you just have to add a `ARCANEDEV_LOGVIEWER_MIDDLEWARE` key to your `.env` file and add middlewares as comma separated values (no space).
Example 1: one middleware

* **Example 1:** single middleware

```
ARCANEDEV_LOGVIEWER_MIDDLEWARE=web
```

Example 2: three middlewares
* **Example 2:** multiple middlewares

```
ARCANEDEV_LOGVIEWER_MIDDLEWARE=web,auth,myCustomMiddleware
ARCANEDEV_LOGVIEWER_MIDDLEWARE=web,auth,custom-middleware
```


## Pagination

```php
Expand Down

0 comments on commit 3e31767

Please sign in to comment.