Files
larablog/app/Filament/Resources/Links/Schemas/LinkForm.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

39 lines
1.1 KiB
PHP

<?php
declare(strict_types=1);
namespace App\Filament\Resources\Links\Schemas;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Components\Textarea;
use Filament\Forms\Components\Toggle;
use Filament\Schemas\Schema;
class LinkForm
{
public static function configure(Schema $schema): Schema
{
return $schema
->components([
TextInput::make('name')
->label(__('admin.fields.name'))
->required(),
TextInput::make('url')
->label(__('admin.fields.url'))
->url()
->required(),
Textarea::make('note')
->label(__('admin.fields.note'))
->columnSpanFull(),
TextInput::make('display_order')
->label(__('admin.fields.display_order'))
->required()
->numeric()
->default(0),
Toggle::make('visible')
->label(__('admin.fields.visible'))
->required(),
]);
}
}