Skip to content

Commit c51c405

Browse files
committed
Updating docs.
1 parent 31c8110 commit c51c405

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

routing.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,4 +289,8 @@ When building applications that support multiple languages, you may wish to incl
289289

290290
'locales' => array('en', 'sp', 'fr');
291291

292-
That's it! You may now access your application routes with any of these languages prefixed to the URI. When you do so, the default language for the `Lang` class will be set automatically, and all URLs generated via the `URL` class will be prefixed with the current language.
292+
That's it! You may now access your application routes with any of these languages prefixed to the URI. When you do so, the default language for the `Lang` class will be set automatically, and all URLs generated via the `URL` class will be prefixed with the current language.
293+
294+
To access the current locale, you may use the `Lang::locale` method:
295+
296+
$locale = Lang::locale();

0 commit comments

Comments
 (0)