Ejemplo n.º 1
0
 /**
  * Show the application registration form.
  *
  * @param  \Illuminate\Http\Request
  * @return \Illuminate\Http\Response
  */
 public function showRegistrationForm(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('auth.registration.subscription');
     } else {
         return view('auth.registration.simple');
     }
 }