/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $mode = 'update'; $payment = Payments::findOrFail($id); return view('settings.payments.edit', compact('payment')); }