24 lines
558 B
PHP
24 lines
558 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Levels\Schemas;
|
|
|
|
use Filament\Forms\Components\TextInput;
|
|
use Filament\Schemas\Schema;
|
|
|
|
class LevelForm
|
|
{
|
|
public static function configure(Schema $schema): Schema
|
|
{
|
|
return $schema
|
|
->components([
|
|
TextInput::make('level_position')
|
|
->numeric(),
|
|
TextInput::make('xpThreshold')
|
|
->required()
|
|
->numeric(),
|
|
TextInput::make('label')
|
|
->required(),
|
|
]);
|
|
}
|
|
}
|