Skip to content

Commit

Permalink
Add bail property to rules
Browse files Browse the repository at this point in the history
  • Loading branch information
lehecht committed Aug 8, 2023
1 parent 2a2cc36 commit c335799
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Requests/StoreVolumeMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ public function rules()
{
return [
'metadata_csv' => [
'required_without_all:metadata_text,ifdo_file',
'bail:required_without_all:metadata_text,ifdo_file',
'file',
'mimetypes:text/plain,text/csv,application/csv',
new Utf8,
],
'metadata_text' => 'required_without_all:metadata_csv,ifdo_file',
'metadata_text' => 'bail:required_without_all:metadata_csv,ifdo_file',
'ifdo_file' => 'required_without_all:metadata_csv,metadata_text|file',
'metadata' => 'filled',
];
Expand Down

0 comments on commit c335799

Please sign in to comment.