mirror of
https://github.com/nihonbuzz/nihonbuzz-academy.git
synced 2026-01-27 02:41:58 +07:00
28 lines
707 B
PHP
28 lines
707 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Levels\Schemas;
|
|
|
|
use Filament\Forms\Components\TextInput;
|
|
use Filament\Forms\Components\Textarea;
|
|
use Filament\Schemas\Schema;
|
|
|
|
class LevelForm
|
|
{
|
|
public static function configure(Schema $schema): Schema
|
|
{
|
|
return $schema
|
|
->components([
|
|
TextInput::make('name')
|
|
->required(),
|
|
TextInput::make('code')
|
|
->required(),
|
|
Textarea::make('description')
|
|
->columnSpanFull(),
|
|
TextInput::make('order_index')
|
|
->required()
|
|
->numeric()
|
|
->default(0),
|
|
]);
|
|
}
|
|
}
|