Filament Create Form and Table on the Same Page

Filament 4/5
Also available in Filament 3 version

A demonstration of creating a custom page with forms and tables displayed side by side.

01JBH3ZAM9PJ8ZQKDKW630HGDF

Get the Source Code:

Only This Example

$9

One-time payment

Full source code for Filament Create Form and Table on the Same Page
Downloadable ZIP file with the source code
Lifetime access to this example
GitHub Sign in with GitHub to buy

Sign in first, then complete your $9 checkout.

Best value — all 168 examples

FilamentExamples Membership

$99 /year
or
$199 lifetime
Access to code of all 168 examples
Future new examples and updates included
FilaCheck Pro package licence included
MCP server included
View membership plans

30-day money-back guarantee

How it works

The inspiration for this page is from a WordPress page:

The whole logic is in a custom Filament page. First, the form is initialized in the mount() method.

app/Filament/Pages/Category.php:

public function mount(): void
{
$this->form->fill();
}

Then, the form has a name field that is live but only on blur. After the state is updated, a slug is generated from its state and set to a slug field.

The select field have options set manually. When options are in closure after the form is saved, the options are reloaded.

app/Filament/Pages/Category.php:

use Filament\Schemas\Schema;
use Illuminate\Support\Str;
use Filament\Forms\Components\Select;
use Filament\Schemas\Components\Section;
use Filament\Forms\Components\Textarea;
use Filament\Forms\Components\TextInput;
use Filament\Schemas\Components\Utilities\Set;
 
public function form(Schema $schema): Schema
{
return $schema
->components([
Section::make()
->schema([
TextInput::make('name')
->required()
->live(onBlur: true)
->afterStateUpdated(function (string $state, Set $set): void {
$set('slug', Str::slug($state));
}),
TextInput::make('slug')
->required(),
Select::make('parent_id')
->label('Parent Category')
->options(fn() => \App\Models\Category::whereNull('parent_id')->pluck('name', 'id')),
Textarea::make('description'),
]),
])
->statePath('data');
}
The FULL tutorial is available after the purchase: in the Readme file of the official repository you would get invited to.