I want to add localization for first page. Used something like this in routes:
Route::get('/{lang?}', function ($lang = null) {
App::setlocale($lang);
return view('welcome');
});
it works. But the problem is when i want to go login page then it stays in same page. /login there thinks login is language. Is any idea how can i fix it?