/**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store(PromosRequest $request)
 {
     $newPromotion = new Promotion($request->all());
     Auth::user()->promotions()->save($newPromotion);
     return redirect('promociones');
 }
Example #2
0
 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store(PromosRequest $request)
 {
     $newPromotion = new Release($request->all());
     Auth::user()->releases()->save($newPromotion);
     return redirect('comunicados');
 }