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'],
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue