/** * 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 a listing of the resource. * * @return Response */ public function index() { $metaTypes = MetaType::all(); return view('metatype.list', compact('metaTypes')); }