show slug in form
CI/CD / test_and_check_app (push) Failing after 55s
CI/CD / Publish immutable image (push) Skipped

This commit is contained in:
2026-09-19 02:06:54 +02:00
parent b79d93fede
commit f9958fb7cf
9 changed files with 172 additions and 60 deletions
+7 -7
View File
@@ -22,13 +22,6 @@ class StoreTeamRequest extends FormRequest
];
}
protected function prepareForValidation(): void
{
$this->merge([
'slug' => Str::slug($this->name),
]);
}
public function messages(): array
{
return [
@@ -38,4 +31,11 @@ class StoreTeamRequest extends FormRequest
'slug.unique' => 'The name has already been taken.',
];
}
protected function prepareForValidation(): void
{
$this->merge([
'slug' => Str::slug($this->name),
]);
}
}