Fixed api docs

This commit is contained in:
Constantin Graf
2024-06-27 17:11:23 +02:00
committed by Gregor Vostrak
parent de1accba4a
commit c3a7ef7585
5 changed files with 9 additions and 4 deletions

View File

@@ -35,7 +35,7 @@ class ProjectUpdateRequest extends FormRequest
(new UniqueEloquent(Project::class, 'name', function (Builder $builder): Builder {
/** @var Builder<Project> $builder */
return $builder->whereBelongsTo($this->organization, 'organization');
}))->ignore($this->project->getKey())->withCustomTranslation('validation.project_name_already_exists'),
}))->ignore($this->project?->getKey())->withCustomTranslation('validation.project_name_already_exists'),
],
'color' => [
'required',