Skip to content

Commit

Permalink
slug validation rule
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed Mar 21, 2020
1 parent f15e35c commit f1d2407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Requests/FormRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function rules()
'date' => 'required|date_format:Y-m-d',
'image_id' => 'nullable|integer',
'title.*' => 'nullable|max:255',
'slug.*' => 'nullable|alpha_dash|max:255|required_with:title.*',
'slug.*' => 'nullable|alpha_dash|max:255|required_if:status.*,1|required_with:title.*',
];
}
}

0 comments on commit f1d2407

Please sign in to comment.