© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
2 replies
SUNSHINE

Resource, custom page with widgets, how to sent the $record ?

Hey guys,

I've created a custom page on a Resource, but on the widgets I would like to get the record, do you know how to do it ?

class ChartOrganization extends Page
{
    protected static string $resource = OrganizationResource::class;

    protected static string $view = 'filament.resources.organization-resource.pages.chart-organization';

    public ?Organization $record;

    protected function getHeaderWidgets(): array
    {
        return [
            OrganizationResource\Widgets\QuotaWidget::class, // $this->record is null inside the widget.
        ];
    }
}
class ChartOrganization extends Page
{
    protected static string $resource = OrganizationResource::class;

    protected static string $view = 'filament.resources.organization-resource.pages.chart-organization';

    public ?Organization $record;

    protected function getHeaderWidgets(): array
    {
        return [
            OrganizationResource\Widgets\QuotaWidget::class, // $this->record is null inside the widget.
        ];
    }
}
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

Custom record pass to recordActions of resource page
FilamentFFilament / ❓┊help
4mo ago
Custom page with resource record error
FilamentFFilament / ❓┊help
14mo ago
Actions on Custom Widgets on resource page
FilamentFFilament / ❓┊help
3y ago
Footer Widgets on Resource Page
FilamentFFilament / ❓┊help
3y ago