laravel/laravel — pull request #348 by drewjoh (2012-02-20 14:35:57+00:00)
Title: Added a URI::segment_value() method.

The `segment_value()` method allows you to easily pick out values you need from a URL without having to always know the exact segment the value you want is in.

This is useful for URIs like `/admin/users/view/page/3/sort_by/name/limit/25/show_emails/true`

You can easily find and know if you have a sort order by calling `URI::segment_value('sort_by')`.

The benefit to using URLs like this is you can easily understand what's happening, as opposed to a URL like `/admin/users/view/3/name/25/true`... as well as adding new conditions, etc is simple also.