Skip to content

Commit

Permalink
Fixed typos in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
korridor committed Nov 12, 2019
1 parent 0581a19 commit 727d3df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function rules()
'content' => ['string'],
'comments.*.id' => [
'nullable',
new ExistEloquent(Comment::class, null, function (Builder $builder) use ($postId) {
new ExistsEloquent(Comment::class, null, function (Builder $builder) use ($postId) {
return $builder->where('post_id', $postId);
}),
],
Expand All @@ -77,13 +77,13 @@ public function rules()
$postId = $this->post->id;

return [
'id' => [new ExistEloquent(Post::class)],
'id' => [new ExistsEloquent(Post::class)],
'username' => [new UniqueEloquent(User::class, 'username')->ignore($postId)],
'title' => ['string'],
'content' => ['string'],
'comments.*.id' => [
'nullable',
new ExistEloquent(Comment::class, null, function (Builder $builder) use ($postId) {
new ExistsEloquent(Comment::class, null, function (Builder $builder) use ($postId) {
return $builder->where('post_id', $postId);
}),
],
Expand Down

0 comments on commit 727d3df

Please sign in to comment.