23 lines
509 B
PHP
23 lines
509 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Genres\Schemas;
|
|
|
|
use Filament\Forms\Components\TextInput;
|
|
use Filament\Schemas\Schema;
|
|
|
|
class GenreForm
|
|
{
|
|
public static function configure(Schema $schema): Schema
|
|
{
|
|
return $schema
|
|
->components([
|
|
TextInput::make('name')
|
|
->required()
|
|
->maxLength(255),
|
|
TextInput::make('slug')
|
|
->required()
|
|
->maxLength(255),
|
|
]);
|
|
}
|
|
}
|