/** * 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"); }
protected static function getAttachments($range) { return []; $id = intval($range); if ($id != 0) { return Logbook::find($id)->user->attachments; } return Attachment::orderBy('id', 'asc')->get(); }