share-lt/app/Filament/Resources/Changes/Schemas/ChangeForm.php

29 lines
752 B
PHP
Raw Normal View History

<?php
namespace App\Filament\Resources\Changes\Schemas;
use Filament\Forms\Components\Select as FormSelect;
use Filament\Forms\Components\Textarea;
use Filament\Schemas\Schema;
class ChangeForm
{
public static function configure(Schema $schema): Schema
{
return $schema
->components([
Textarea::make('note')
->label('Note')
->required(),
FormSelect::make('type')
->label('Type')
->options([
'go-live' => 'Go Live',
'general' => 'General',
])
->default('go-live')
->required(),
]);
}
}