fly 4 years ago
parent
commit
4127d55e9a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Requests/CompanyAuth/ChannelQueryRequest.php

+ 2 - 2
src/Requests/CompanyAuth/ChannelQueryRequest.php

@@ -19,9 +19,9 @@ class ChannelQueryRequest extends Request
         return [
         return [
             'channel_id' => ['required', 'integer', Rule::in($this->channel_ids)],
             'channel_id' => ['required', 'integer', Rule::in($this->channel_ids)],
             'start_time' => 'date',
             'start_time' => 'date',
-            'end_time' => 'required_if:start_time|date|after_or_equal:start_time',
+            'end_time' => 'required_with:start_time|date|after_or_equal:start_time',
             'begin_date' => 'date',
             'begin_date' => 'date',
-            'end_date' => 'required_if:begin_date|date|after_or_equal:begin_date',
+            'end_date' => 'required_with:begin_date|date|after_or_equal:begin_date',
         ];
         ];
     }
     }