Lazy Validation
class LazyDTO extends ValidatedDTO
{
public bool $lazyValidation = true;
}$dto = new LazyDTO();
$dto->name = 'John Doe';
$dto->validate(); // This is where the data is validated and the attributes are castuse Livewire\Wireable as LivewireWireable;
use WendellAdriel\ValidatedDTO\Concerns\Wireable;
class MyDTO extends ValidatedDTO implements LivewireWireable
{
use Wireable;
public bool $lazyValidation = true;
}The Lazy attribute
Lazy attributeLast updated