We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ignore
1 parent e4ba366 commit 0e34580Copy full SHA for 0e34580
readme.md
@@ -81,7 +81,7 @@ public function rules()
81
82
return [
83
'id' => [new ExistsEloquent(Post::class)],
84
- 'username' => [new UniqueEloquent(User::class, 'username')->ignore($postId)],
+ 'username' => [(new UniqueEloquent(User::class, 'username'))->ignore($postId)],
85
'title' => ['string'],
86
'content' => ['string'],
87
'comments.*.id' => [
0 commit comments