/** * Display the specified resource. * * @param int $id * @return Response */ public function show($id) { $payment = Payment::findOrFail($id); $metaTypes = \App\MetaType::all(); return view('payment.view', compact(['payment', 'metaTypes'])); }
/** * Display the specified resource. * * @param int $id * @return Response */ public function show($id) { $incoming = Incoming::findOrFail($id); $metaTypes = \App\MetaType::where('type', 'Incoming')->get(); return view('incoming.view', compact(['incoming', 'metaTypes'])); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { $metaType = MetaType::findOrFail($id); $metaType->delete(); return redirect()->route('metatype.index', []); }