{"action":"opened","issue":{"url":"https://api.github.com/repos/Waavi/translation/issues/78","repository_url":"https://api.github.com/repos/Waavi/translation","labels_url":"https://api.github.com/repos/Waavi/translation/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/Waavi/translation/issues/78/comments","events_url":"https://api.github.com/repos/Waavi/translation/issues/78/events","html_url":"https://github.com/Waavi/translation/issues/78","id":192599497,"number":78,"title":"route, middleware infinite redirect es/es/es/es","user":{"login":"ApuRed","id":1470677,"avatar_url":"https://avatars.githubusercontent.com/u/1470677?v=3","gravatar_id":"","url":"https://api.github.com/users/ApuRed","html_url":"https://github.com/ApuRed","followers_url":"https://api.github.com/users/ApuRed/followers","following_url":"https://api.github.com/users/ApuRed/following{/other_user}","gists_url":"https://api.github.com/users/ApuRed/gists{/gist_id}","starred_url":"https://api.github.com/users/ApuRed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ApuRed/subscriptions","organizations_url":"https://api.github.com/users/ApuRed/orgs","repos_url":"https://api.github.com/users/ApuRed/repos","events_url":"https://api.github.com/users/ApuRed/events{/privacy}","received_events_url":"https://api.github.com/users/ApuRed/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-30T15:43:19Z","updated_at":"2016-11-30T15:43:19Z","closed_at":null,"body":"Hi,\r\n\r\nI configure all items in laravel 5.3 but redirect all sections to es/es/es\r\n\r\nmy code is:\r\napp/Http/Kernel.php\r\n```\r\nprotected $middleware = [\r\n        \\Illuminate\\Foundation\\Http\\Middleware\\CheckForMaintenanceMode::class,\r\n\t\t\\Waavi\\Translation\\Middleware\\TranslationMiddleware::class,\r\n    ];\r\n```\r\nweb/routes.php\r\n```\r\nRoute::get('/', function () {\t\r\n\treturn view('home');\r\n});\r\n```\r\nconfig/translator.php\r\n```\r\n\r\nreturn [\r\n\r\n    /*\r\n    |--------------------------------------------------------------------------\r\n    | Default Translation Mode\r\n    |--------------------------------------------------------------------------\r\n    |\r\n    | This option controls the translation's bundle mode of operation.\r\n    |\r\n    | Supported:\r\n    |\r\n    |   'mixed'         Both files and the database are queried for language entries, with files taking priority.\r\n    |   'database'      Use the database as the exclusive source for language entries.\r\n    |   'files'         Use files as the exclusive source for language entries [Laravel's default].\r\n     */\r\n    'source'            => 'database',\r\n\r\n    // In case the files source is selected, please enter here the supported locales for your app.\r\n    // Ex: ['en', 'es', 'fr']\r\n    'available_locales' => ['en', 'es'],\r\n\r\n    /*\r\n    |--------------------------------------------------------------------------\r\n    | Default Translation Cache\r\n    |--------------------------------------------------------------------------\r\n    |\r\n    | Choose whether to leverage Laravel's cache module and how to do so.\r\n    |\r\n    |   'enabled'       Boolean value.\r\n    |   'timeout'       In minutes.\r\n    |\r\n     */\r\n    'cache'             => [\r\n        'enabled' => env('TRANSLATION_CACHE_ENABLED', false),\r\n        'timeout' => env('TRANSLATION_CACHE_TIMEOUT', 60),\r\n        'suffix'  => env('TRANSLATION_CACHE_SUFFIX', 'translation'),\r\n    ],\r\n];\r\n```\r\n\r\nPlease Help!"}}
{"actor":{"display_login":"ApuRed"}}