Ejemplo n.º 1
0
 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store(Request $request)
 {
     $subscription = new Subscription();
     if ($subscription->storeSubscription($request, $this->user->id)) {
         return Redirect::route('programs.index')->with('message', 'Program Created Successfully');
     } else {
         return Redirect::route('programs.index')->with('message', 'Fail to Create Program');
     }
 }