add duration
This commit is contained in:
@@ -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