Skip to content

Commit

Permalink
change livewire rule attribute to validate (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
achmedislamic authored Dec 6, 2023
1 parent 605fe0b commit eac98a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions stubs/livewire-common/app/Livewire/Forms/LoginForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@
use Illuminate\Support\Facades\RateLimiter;
use Illuminate\Support\Str;
use Illuminate\Validation\ValidationException;
use Livewire\Attributes\Rule;
use Livewire\Attributes\Validate;
use Livewire\Form;

class LoginForm extends Form
{
#[Rule('required|string|email')]
#[Validate('required|string|email')]
public string $email = '';

#[Rule('required|string')]
#[Validate('required|string')]
public string $password = '';

#[Rule('boolean')]
#[Validate('boolean')]
public bool $remember = false;

/**
Expand Down

0 comments on commit eac98a0

Please sign in to comment.