Files

24 lines
571 B
PHP

<?php
namespace App\Filament\Resources\Documents\Schemas;
use Filament\Forms\Components\TextInput;
use Filament\Schemas\Schema;
class DocumentForm
{
public static function configure(Schema $schema): Schema
{
return $schema
->components([
TextInput::make('name')
->required(),
TextInput::make('documentable_type')
->required(),
TextInput::make('documentable_id')
->required()
->numeric(),
]);
}
}