initial commit
This commit is contained in:
commit
0c42bef077
109 changed files with 16545 additions and 0 deletions
20
app/Livewire/Forms/MovieListForm.php
Normal file
20
app/Livewire/Forms/MovieListForm.php
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
|
||||
namespace App\Livewire\Forms;
|
||||
|
||||
use Livewire\Form;
|
||||
|
||||
class MovieListForm extends Form
|
||||
{
|
||||
public string $name = "";
|
||||
public bool $is_public = false;
|
||||
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'name' => ['required', 'string', 'max:255'],
|
||||
'is_public' => ['required', 'boolean'],
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
11
app/Livewire/Forms/MovieSearchForm.php
Normal file
11
app/Livewire/Forms/MovieSearchForm.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Livewire\Forms;
|
||||
|
||||
use Livewire\Attributes\Validate;
|
||||
use Livewire\Form;
|
||||
|
||||
class MovieSearchForm extends Form
|
||||
{
|
||||
//
|
||||
}
|
||||
21
app/Livewire/Forms/PasswordResetForm.php
Normal file
21
app/Livewire/Forms/PasswordResetForm.php
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
namespace App\Livewire\Forms;
|
||||
|
||||
use Livewire\Attributes\Validate;
|
||||
use Livewire\Form;
|
||||
|
||||
class PasswordResetForm extends Form
|
||||
{
|
||||
public string $email = "";
|
||||
public string $password = "";
|
||||
public string $password_confirmation = "";
|
||||
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'email' => ['required', 'email', 'exists:users,email'],
|
||||
'password' => ['required', 'string', 'min:8', 'confirmed'],
|
||||
];
|
||||
}
|
||||
}
|
||||
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