Ejemplo n.º 1
0
 /**
  * Show the form for editing the specified log.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $log = Logbook::find(Crypt::decrypt($id));
     return View::make('logs.edit', compact('log'))->withTitle("Ubah kegiatan");
 }
Ejemplo n.º 2
0
 protected static function getAttachments($range)
 {
     return [];
     $id = intval($range);
     if ($id != 0) {
         return Logbook::find($id)->user->attachments;
     }
     return Attachment::orderBy('id', 'asc')->get();
 }