Joined May 2014
·

Alek

Buenos Cocos
·
Argentina
·
·

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

Achievements
1 Karma
0 Total ProTip Views
Interests & Skills