ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filamentโ€ข12mo agoโ€ข
2 replies
Nashoba

Passing ID to a custom header action in show page

Hello ! I'm having an issue when trying to create a specific resource. I basically have my MainResource show page and I add this inside :
protected function getHeaderActions(): array
    {
        return [
            Actions\Action::make('create patient')
            ->url(PatientResource::getUrl('create'))
            ->label('Ajouter un patient')
        ];
    }
protected function getHeaderActions(): array
    {
        return [
            Actions\Action::make('create patient')
            ->url(PatientResource::getUrl('create'))
            ->label('Ajouter un patient')
        ];
    }


this resource is related to my MainResource and it's like adding Patient to my Main, but I need to set the current Main Model id to the Patient I create, I don't know if that' clear ๐Ÿ˜…
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

Passing an ID to a custom edit action
FilamentFFilament / โ“โ”Šhelp
3y ago
Passing data to custom page through table action.
FilamentFFilament / โ“โ”Šhelp
3y ago
Passing parameters to a custom page
FilamentFFilament / โ“โ”Šhelp
3y ago
Custom Header Action In Resources
FilamentFFilament / โ“โ”Šhelp
3y ago