Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

SigalZ's avatar
Level 5

Error on Livewire validation

Hello, using Laravel 10 Livewire 3.

I have a form where I need to validate fields on conditions.

My Code:

PackOrderComponent.php:

PackOrderForm.php

pack-order-component.blade.php:

When submitting the form I get this error:

Property type not supported in Livewire for property: [[]]

What does this error mean? Why do I get it?

0 likes
8 replies
SigalZ's avatar
Level 5

After more checks it looks like this rule causes the error:

  'till_slip_time' => 'date_format:H:i'

But I don't understand why.

From Laravel's documentation:

date_format:format,...

The field under validation must match one of the given formats. You should use either date or date_format when validating a field, not both. This validation rule supports all formats supported by PHP's DateTime class

SigalZ's avatar
Level 5

Thank you guys. Nothing helps. I'm going to debug more and will let you know if I find the solution.

migsAV's avatar

@sigalz make sure the data being passed through for your till_slip_time is formated correctly when doing the validation.

Check that it's coming in as H:i

On a closer look, you don't have square brackets in your validation:

'boxes_used.*' =>  [
         Rule::requiredIf(is_null($this->no_boxes_used))
],
SigalZ's avatar
Level 5

I simplified the form and updated my question. Still getting the error.

SigalZ's avatar
Level 5

@Meteor64 Thank you, but that's not the problem. These dd's are for debugging.

SigalZ's avatar
Level 5

@Meteor64 Thanks but that was just a typing mistake when I posted the code, in the actual code I declare the rules once.

SigalZ's avatar
SigalZ
OP
Best Answer
Level 5

Hello, I am closing this issue.

I found out it was part of the code that I was playing with and did not include here.

This caused the error:

$this->errors = $this->getErrorBag();

Apologies for not adding this part.

Please or to participate in this conversation.