© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
20 replies
ico

Filament v3 Resource does not fill the Edit form

Hello i integrated the Filament package into a existing Laravel 10 project.
When i followed the guide for the panels i discovered that after i have created a Resource ( when i filled the logic for the Table ) it doesn't fill the Edit form with the selected record.
My table looks like this (from the docs and demo on github )
->columns([
    Tables\Columns\TextColumn::make('name'),
    Tables\Columns\TextColumn::make('defectCategory.weight'),
    Tables\Columns\TextColumn::make('')->label('Check type')
        ->description(fn (Defect $defect): string => $defect->qualityCheck)
])
->filters([
    //
])
->actions([
    EditAction::make(),
])
->emptyStateActions([
    CreateAction::make(),
]);
->columns([
    Tables\Columns\TextColumn::make('name'),
    Tables\Columns\TextColumn::make('defectCategory.weight'),
    Tables\Columns\TextColumn::make('')->label('Check type')
        ->description(fn (Defect $defect): string => $defect->qualityCheck)
])
->filters([
    //
])
->actions([
    EditAction::make(),
])
->emptyStateActions([
    CreateAction::make(),
]);


And my Edit page is almost blank
protected static string $resource = DefectResource::class;
protected function getHeaderActions(): array
{
    return [
        Actions\DeleteAction::make(),
    ];
}
protected static string $resource = DefectResource::class;
protected function getHeaderActions(): array
{
    return [
        Actions\DeleteAction::make(),
    ];
}


Was looking around found some were doing with the
->record()
->record()
method so i tried
EditAction::make()
    ->record(function ($record) {
        return Defect::find($record);
    }),
EditAction::make()
    ->record(function ($record) {
        return Defect::find($record);
    }),

But didn't make a difference

So what do i need to do to fill my Edit form with the selected record ?
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Fill form from within resource
FilamentFFilament / ❓┊help
3y ago
Form does not fill with data
FilamentFFilament / ❓┊help
2mo ago
Fill form after mount in v3?
FilamentFFilament / ❓┊help
3y ago
[Filament v3] Resource not showing in sidebar
FilamentFFilament / ❓┊help
9mo ago