Skip to content

Commit 727d3df

Browse files
committed
Fixed typos in readme
1 parent 0581a19 commit 727d3df

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function rules()
5757
'content' => ['string'],
5858
'comments.*.id' => [
5959
'nullable',
60-
new ExistEloquent(Comment::class, null, function (Builder $builder) use ($postId) {
60+
new ExistsEloquent(Comment::class, null, function (Builder $builder) use ($postId) {
6161
return $builder->where('post_id', $postId);
6262
}),
6363
],
@@ -77,13 +77,13 @@ public function rules()
7777
$postId = $this->post->id;
7878

7979
return [
80-
'id' => [new ExistEloquent(Post::class)],
80+
'id' => [new ExistsEloquent(Post::class)],
8181
'username' => [new UniqueEloquent(User::class, 'username')->ignore($postId)],
8282
'title' => ['string'],
8383
'content' => ['string'],
8484
'comments.*.id' => [
8585
'nullable',
86-
new ExistEloquent(Comment::class, null, function (Builder $builder) use ($postId) {
86+
new ExistsEloquent(Comment::class, null, function (Builder $builder) use ($postId) {
8787
return $builder->where('post_id', $postId);
8888
}),
8989
],

0 commit comments

Comments
 (0)