settingService = $settingService; } /** * return the main view * @return view */ public function index() { return view('landing')->with([ 'appSettings' => $this->settingService->all()->toJson(), 'lang' => App::currentLocale(), 'locales' => collect(config("2fauth.locales"))->toJson(), ]); } }