To works with /public/ or whatever subdirectory, change
$path = Request::path(); $translated = Config::get('app.url').'/'.$lang.'/'.$path;
With:
$path = Request::path(); $translated = str_replace($path, $lang.'/'.$path, Request::url());
Alek
To works with /public/ or whatever subdirectory, change
$path = Request::path();
$translated = Config::get('app.url').'/'.$lang.'/'.$path;
With:
$path = Request::path();
$translated = str_replace($path, $lang.'/'.$path, Request::url());
Alek