public function getSetting() { $ruleName = 'analyticsSetting'; \XeFrontend::rule($ruleName, $this->getRules()); return XePresenter::make('setting', ['setting' => app('xe.plugin.ga')->getSetting(), 'ruleName' => $ruleName]); }
/** * Show the application login form. * * @return \Illuminate\Http\Response */ public function getLogin(UrlGenerator $urlGenerator, Request $request) { $redirectUrl = $this->redirectPath = $request->get('redirectUrl', $urlGenerator->previous()); // common config $config = app('xe.config')->get('user.common'); $loginRuleName = 'login'; \XeFrontend::rule($loginRuleName, ['email' => 'required|email_prefix', 'password' => 'required']); return \XePresenter::make('login', compact('config', 'loginRuleName', 'redirectUrl')); }