Added filters to time-entries.index endpoint

This commit is contained in:
Constantin Graf
2024-02-27 12:05:18 +01:00
parent 9c5a238dda
commit 8b85f50e22
11 changed files with 538 additions and 349 deletions

View File

@@ -26,6 +26,7 @@ class TimeEntryStoreRequest extends FormRequest
public function rules(): array
{
return [
// ID of the user that the time entry should belong to
'user_id' => [
'required',
'string',
@@ -38,6 +39,7 @@ class TimeEntryStoreRequest extends FormRequest
});
}),
],
// ID of the task that the time entry should belong to
'task_id' => [
'nullable',
'string',