Skip to content

Commit

Permalink
slug required_with title validation rule
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed Nov 29, 2019
1 parent 1a93af6 commit 48fe930
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,8 +12,8 @@ public function rules()
'start_date' => 'required|date_format:"Y-m-d\TH:i"',
'end_date' => 'required|date_format:"Y-m-d\TH:i"|after_or_equal:start_date',
'image_id' => 'nullable|integer',
'slug.*' => 'nullable|alpha_dash|max:255',
'title.*' => 'nullable|max:255',
'slug.*' => 'nullable|alpha_dash|max:255|required_with:title.*',
'venue.*' => 'nullable|max:255',
];
}
Expand Down

0 comments on commit 48fe930

Please sign in to comment.