예제 #1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $aduan = Laporan::findOrFail($id);
     $cawangan = Cawangan::lists('nama', 'id');
     $peralatan = Peralatan::orderBy('nama', 'asc')->lists('nama', 'id');
     return View('members.user.laporanEdit', compact('aduan', 'cawangan', 'peralatan'));
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function peralatan($id = null)
 {
     if ($id == null) {
         return Peralatan::orderBy('id', 'asc')->get();
     } else {
         return $this->show($id);
     }
 }