private function weekWorklogs($start) { $date = $this->weekCalc($start); return Worklog::where('started', '>=', $date['start'])->where('started', '<', $date['end'])->orderBy('issue_id')->get(); // ->paginate(15); }
/** * Remove the specified resource from storage. * * @param int $id * * @return void */ public function destroy($id) { Worklog::destroy($id); Session::flash('flash_message', 'Worklog deleted!'); Session::flash('flash_message_type', 'success'); return redirect('worklogs'); }