Files
larablog/app/Filament/Resources/Stylevars/Schemas/StylevarForm.php
T
ak 263b98b218 Initial baseline: LaraBlog core with plugin commerce surface.
Captures the current working tree after theme slots, ArticleAccess, and the payment / paid-content plugins so subsequent work has a reviewable git history.
2026-08-12 01:15:38 +08:00

32 lines
860 B
PHP

<?php
declare(strict_types=1);
namespace App\Filament\Resources\Stylevars\Schemas;
use Filament\Forms\Components\Textarea;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Components\Toggle;
use Filament\Schemas\Schema;
class StylevarForm
{
public static function configure(Schema $schema): Schema
{
return $schema
->components([
TextInput::make('title')
->label(__('admin.fields.title'))
->required()
->maxLength(120),
Textarea::make('value')
->label(__('admin.fields.value'))
->rows(8)
->columnSpanFull(),
Toggle::make('visible')
->label(__('admin.fields.visible'))
->default(true),
]);
}
}