-
-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
445 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,6 +49,19 @@ public function rules(): array | |
return $builder->whereBelongsTo($this->organization, 'organization'); | ||
}), | ||
], | ||
// Filter by client IDs, client IDs are OR combined | ||
'client_ids' => [ | ||
'array', | ||
'min:1', | ||
], | ||
'client_ids.*' => [ | ||
'string', | ||
'uuid', | ||
new ExistsEloquent(Client::class, null, function (Builder $builder): Builder { | ||
Check failure on line 60 in app/Http/Requests/V1/TimeEntry/TimeEntryIndexRequest.php GitHub Actions / phpstan
Check failure on line 60 in app/Http/Requests/V1/TimeEntry/TimeEntryIndexRequest.php GitHub Actions / phpstan
|
||
/** @var Builder<Client> $builder */ | ||
return $builder->whereBelongsTo($this->organization, 'organization'); | ||
Check failure on line 62 in app/Http/Requests/V1/TimeEntry/TimeEntryIndexRequest.php GitHub Actions / phpstan
Check failure on line 62 in app/Http/Requests/V1/TimeEntry/TimeEntryIndexRequest.php GitHub Actions / phpstan
|
||
}), | ||
], | ||
// Filter by project IDs, project IDs are OR combined | ||
'project_ids' => [ | ||
'array', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.