/** * Remove the specified resource from storage. * * @param int $id * * @return Response */ public function destroy($id) { CroaziereVase::destroy($id); Session::flash('flash_message', 'CroaziereVase deleted!'); return redirect('auth/croazierevase'); }
/** * Show the form for editing the specified resource. * * @param int $id * * @return Response */ public function edit($id) { $croaziereoferte = CroaziereOferte::findOrFail($id); $vase = CroaziereVase::all()->lists('Nume', 'id'); return view('backend.croaziereoferte.edit', compact('croaziereoferte', 'vase')); }