public function postParty(PartyFormRequest $request, Piece $piece) { $data = $request->except('token'); $data['piece_id'] = $piece->id; $party = Party::create($data); flash()->success('Thanks!', "We have received your Party Request and will back in touch very soon!"); return redirect()->action('GalleryController@getShow', [$piece->slug]); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $parties = PartyRequest::orderBy('created_at', 'desc')->paginate(25); return view('admin.parties.index', compact('parties')); }