*/ public function rules(): array { return [ 'enter_station' => 'required|date', ]; } public function after(): array { return [ function (Validator $validator) { if (strtotime($this->violation->exit_station) < strtotime($this->enter_station)) { $validator->errors()->add( 'time', 'زمان پایان ماموریت باید بعد از زمان شروع ماموریت باشد.' ); } } ]; } }