Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim van Uum committed Jan 23, 2016
1 parent 4dcd007 commit 2837ce1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Run the following command:
`composer require doitonlinemedia/translatableroutes "dev-master"`


Next add the following provider to your app.php in the config file under 'providers':
Next add the following provider to your app.php in the config folder under 'providers':

`Doitonlinemedia\Translatableroutes\TranslatableRoutesServiceProvider::class`

Expand All @@ -34,6 +34,8 @@ You can also use it like:

This way you will have different routes in different language, but always named the same. So if you use route('recipe.index') you'll always return the to the right page no matter what language.

Do not forget to set your locale to specific language you need e.g. `\App::setLocale('nl')`

# Result
![Alt text](example.png?raw=true "Routes Example")

Expand Down
3 changes: 0 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
"php": ">=5.3.0"
},
"autoload": {
"classmap": [
"src"
],
"psr-4": {
"Doitonlinemedia\\Translatableroutes\\": "src/"
}
Expand Down

0 comments on commit 2837ce1

Please sign in to comment.