laravel/laravel — pull request #1226 by akuzemchak (2012-09-15 23:06:09+00:00)
Title: Fixes language URI routing issue

**Issue:** I have a route for `GET /entries`, but always returns a 404. The route is configured properly in the code.

**Cause of issue:** Laravel tries to detect if a language key is passed at the beginning of the URI. In this case, English (en) is a valid language key, and the system is trying to internally re-route `/entries` to `/en/tries` which is throwing the 404.

**Fix:** I have altered the code to use a regular expression to see if the language code is the only segment present, or if there is a slash after it.