25 lines
601 B
PHP
25 lines
601 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Master\Locations\Schemas;
|
|
|
|
use Filament\Forms\Components\TextInput;
|
|
use Filament\Schemas\Schema;
|
|
|
|
class LocationForm
|
|
{
|
|
public static function configure(Schema $schema): Schema
|
|
{
|
|
return $schema
|
|
->components([
|
|
TextInput::make('name')
|
|
->label('Nama Lokus')
|
|
->placeholder('Purwakarta')
|
|
->autocomplete(false)
|
|
->autofocus()
|
|
->required()
|
|
->maxLength(50),
|
|
])
|
|
->columns(1);
|
|
}
|
|
}
|