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