Enhancements

- Added example on how to get current url in documentation.
- Fixed so urls always ends with /.
This commit is contained in:
Simon Sessingø
2016-11-21 07:56:37 +01:00
parent 5ad7dcf9fd
commit 2cc97c120f
2 changed files with 7 additions and 1 deletions
+5
View File
@@ -402,6 +402,11 @@ url('phones.edit');
# /phones/edit/
```
**Return the current url**
```php
url();
```
## Custom CSRF verifier
Create a new class and extend the ```BaseCsrfVerifier``` middleware class provided with simple-php-router.