From 2837ce1c802ccd83e91e79f78d0076d07e23ac86 Mon Sep 17 00:00:00 2001 From: Tim van Uum Date: Sat, 23 Jan 2016 16:15:10 +0100 Subject: [PATCH] Minor fixes --- README.md | 4 +++- composer.json | 3 --- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index da783f6..5046abf 100644 --- a/README.md +++ b/README.md @@ -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` @@ -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") diff --git a/composer.json b/composer.json index 1db7ed0..5d735d3 100644 --- a/composer.json +++ b/composer.json @@ -13,9 +13,6 @@ "php": ">=5.3.0" }, "autoload": { - "classmap": [ - "src" - ], "psr-4": { "Doitonlinemedia\\Translatableroutes\\": "src/" }