示例#1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $data = Sales::with('karyawan')->find($id)->toArray();
     //dd($data);
     return view('sales.edit', compact('data'));
 }
示例#2
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $data = Customers::find($id)->toArray();
     $sales = Sales::with('karyawan')->get()->toArray();
     return view('customer.edit', compact('data', 'sales'));
 }