Grundgerüst Formulare und Seeder
This commit is contained in:
23
app/Filament/Resources/Documents/Schemas/DocumentForm.php
Normal file
23
app/Filament/Resources/Documents/Schemas/DocumentForm.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?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(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user