From 5579db5b5efa1c2a167b968ca312de260c2aecf3 Mon Sep 17 00:00:00 2001 From: Martin Pfundmair Date: Tue, 27 Aug 2019 17:00:55 +0900 Subject: [PATCH] Update README.md Adds crucial information about needing to enable public route if you want to use http method --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index f075ff7..0f0b748 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,8 @@ let messages = axios.get('http://localhost/js/lang.js') // This is default route ``` +For this to work, you need to enable the route via `LARAVEL_LOCALIZATION_ROUTE_ENABLE` in your `.env` file or in `config/laravel-localization.php` + You can also export messages to ECMAScript 6 standard JavaScript module with artisan command ```` php artisan export:messages ````