/** * Show the application registration form. * * @param \Illuminate\Http\Request * @return \Illuminate\Http\Response */ public function getRegister(Request $request) { if (Spark::forcingPromotion() && !$request->query('coupon')) { if (count($request->query()) > 0) { return redirect($request->fullUrl() . '&coupon=' . Spark::forcedPromotion()); } else { return redirect($request->fullUrl() . '?coupon=' . Spark::forcedPromotion()); } } if (count($this->plans->paid()) > 0) { return view('spark::auth.registration.subscription'); } else { return view('spark::auth.registration.simple'); } }