Skip to content

Commit ce362ec

Browse files
committed
slug validation rule
1 parent 39413c3 commit ce362ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Requests/FormRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public function rules()
1111
return [
1212
'image_id' => 'nullable|integer',
1313
'title.*' => 'nullable|max:255',
14-
'slug.*' => 'nullable|alpha_dash|max:255|required_with:title.*',
14+
'slug.*' => 'nullable|alpha_dash|max:255|required_if:status.*,1|required_with:title.*',
1515
];
1616
}
1717
}

0 commit comments

Comments
 (0)