Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Adds crucial information about needing to enable public route if you want to use http method
  • Loading branch information
MartinP7r authored Aug 27, 2019
1 parent 73994b7 commit 5579db5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ let messages = axios.get('http://localhost/js/lang.js') // This is default route
</script>
```

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 ````

Expand Down

0 comments on commit 5579db5

Please sign in to comment.