nam_co
241
5
Laravel

5.5 route::view with language data

Posted 1 year ago by nam_co

Hi, I was wondering if its possible to set/include the app lang (App::setLocale('en')) using the new Route::view('/', 'front.index', ['lang' => 'en']); I know its possible using code in the view, but is it possible to set it directly in the route file?

Thanks for any help

Please sign in or create an account to participate in this conversation.