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