/** * 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'); }
/** * 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'); }