initial commit
This commit is contained in:
commit
0c42bef077
109 changed files with 16545 additions and 0 deletions
20
app/Livewire/Forms/RegisterUserForm.php
Normal file
20
app/Livewire/Forms/RegisterUserForm.php
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
|
||||
namespace App\Livewire\Forms;
|
||||
|
||||
use Livewire\Attributes\Validate;
|
||||
use Livewire\Form;
|
||||
|
||||
class RegisterUserForm extends Form
|
||||
{
|
||||
public string $email = "";
|
||||
public string $username = "";
|
||||
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
"email" => ["required", "email", "unique:users,email"],
|
||||
"username" => ["required", "unique:users,username"],
|
||||
];
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue