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.
1 parent 39413c3 commit ce362ecCopy full SHA for ce362ec
src/Http/Requests/FormRequest.php
@@ -11,7 +11,7 @@ public function rules()
11
return [
12
'image_id' => 'nullable|integer',
13
'title.*' => 'nullable|max:255',
14
- 'slug.*' => 'nullable|alpha_dash|max:255|required_with:title.*',
+ 'slug.*' => 'nullable|alpha_dash|max:255|required_if:status.*,1|required_with:title.*',
15
];
16
}
17
0 commit comments