File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ],
You can’t perform that action at this time.
0 commit comments