add duration
This commit is contained in:
1 parent
335fc8b12b
commit
f27ffc1ce8
19 files changed
+248
-48
No files matched your search
@@ -12,9 +12,15 @@ class TimeTrackerController extends Controller
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*/
|
||||
public function index()
|
||||
public function index(Request $request)
|
||||
{
|
||||
//
|
||||
$timeTrackers = $request->user()
|
||||
->timeTrackers()
|
||||
->with('toDo')
|
||||
->orderBy('start_at', 'desc')
|
||||
->paginate();
|
||||
|
||||
return response()->json(TimeTrackerResource::collection($timeTrackers));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user