Skip to content

Commit

Permalink
Fix task 9: check ucfirst validate rule manual
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoàng Văn Tuyến committed Oct 17, 2023
1 parent ab09c53 commit 72f4874
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Rules/Uppercase.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Uppercase implements ValidationRule
*/
public function validate(string $attribute, mixed $value, Closure $fail): void
{
if (strtoupper($value) !== $value) {
if (ucfirst($value) !== $value) {
$fail('The title does not start with an uppercased letter');
}
}
Expand Down

0 comments on commit 72f4874

Please sign in to comment.