Skip to content

Commit

Permalink
Merge pull request #62 from robertgarrigos/master
Browse files Browse the repository at this point in the history
#61 wrong documentation on default routing
  • Loading branch information
kg-bot authored May 12, 2020
2 parents abdd58d + b5df47f commit 9ac888b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Second way would be to request it over HTTP just like any other file

```html
<script>
let messages = axios.get('http://localhost/js/lang.js') // This is default route which can be changed in config
let messages = axios.get('http://localhost/js/localization.js') // This is default route which can be changed in config
</script>
```

Expand Down Expand Up @@ -194,7 +194,7 @@ Laravel 5.4+ allows localization to be strutured [using a single `.json` file fo

## Routing

This package exposes one route `http://localhost/js/lang.js` by default but you can change the prefix to anything you whish in config file.
This package exposes one route `http://localhost/js/localization.js` by default but you can change the prefix to anything you whish in config file.

You can also have a nice route name for blade templates or any other route calls, it's `route('assets.lang')` by default but it's customizable by config/environment file.

Expand Down

0 comments on commit 9ac888b

Please sign in to comment.