dev-resources.site
for different kinds of informations.
Add a sidebar with options in a Filament resource
Published at
10/30/2024
Categories
laravel
tutorial
filament
Author
Sergio Peris
Using Filament you can add a sidebar in your resource create and edit views.
Here you can see what I see when I'm writing a new post:
This layout is created using the Split
component. Inside it I have two Section
components, one for each column. The second Section
has the grow
property disabled, so it takes the minimum space required.
Also, the Split
component has a xl
breakpoint, if the screen is lower than that a single column layout will be shown.
The schema
has by default a two column grid, so make sure your Split
component has the column span set to full
so it uses all the horizontal available space.
public static function form(Form $form): Form
{
return $form
->schema([
Forms\Components\Split::make([
Forms\Components\Section::make([
Forms\Components\TextInput::make('title')
->required(),
]),
Forms\Components\Section::make([
Forms\Components\DateTimePicker::make('published_at')
->nullable(),
])->grow(false),
])->from('xl')->columnSpan('full');
]);
}
Articles
12 articles in total
Change keyboard to Spanish distribution on Ubuntu Server
read article
SQL Server: Get database port
read article
Laravel queues: Skip job if no longer required
read article
How to check your battery health
read article
Disable password expiration in Windows
read article
Add a sidebar with options in a Filament resource
currently reading
Enable GRUB menu
read article
Add Windows 10 to GRUB OS list
read article
Docker Compose: Remove all containers, networks, volumes and images from a project
read article
Add Enter after barcode with Honeywell PDA
read article
How to deploy Tileserver GL
read article
Reset unknown Windows' administrator password
read article
Featured ones: