Files
laralog/app/Filament/Resources/Links/Schemas/LinkForm.php
T

30 lines
761 B
PHP

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