I would like to implement multilanguage urls in Laravel 5.
This example seems working in Laravel 4: How to create multilingual translated routes in Laravel
foreach(Lang::get('routes') as $k => $v) {
Route::pattern($k, $v);
}
I changed Lang::get() with trans(), since Lange::get() is no longer supported in L5, but I get an error: Invalid argument supplied for foreach() Any ideas how I can solve this? Thank you