letrunghieu / active

The helper class for Laravel applications to get active class base on current route
https://www.hieule.info/tag/laravel-active/
MIT License
414 stars 82 forks source link

Error in documentation in - "Check the route parameter value" #26

Closed blomdahldaniel closed 8 years ago

blomdahldaniel commented 8 years ago

Hi! I think that this package is nice.

I did find an error in your documentation at your website though. Just a mistake. https://www.hieule.info/products/laravel-active-version-3-released/

It is under the header:

Check the route parameter value

  • Use the alias: Active::checkRouteParam($key, $value)
  • Use the application container: app('active')->checkRouteParam($key, $value)
  • Use the helper function: if_route_pattern($key, $value)

The third line is wrong and should be:

the error is _pattern instead of _param like it should be

letrunghieu commented 8 years ago

Thank you for pointing it out :) I updated the documentation on my website.

blomdahldaniel commented 8 years ago

Glad to help! :) Thanks!