© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•6mo ago•
5 replies
dotdotdot

how to pass parent record to relation manager bulkaction

I have this bulk action in a relationmanager:

I want to pass, alongside the
$records
$records
, the parent record. how can I do that?
BulkAction::make('Marquer comme réussi')
  ->color('info')
  ->deselectRecordsAfterCompletion()
  ->visible()
  ->action(function ($records) {
      foreach ($records as $record) {
           $record->update(['cert_code' => bin2hex(random_bytes(4))]);
       }
})
BulkAction::make('Marquer comme réussi')
  ->color('info')
  ->deselectRecordsAfterCompletion()
  ->visible()
  ->action(function ($records) {
      foreach ($records as $record) {
           $record->update(['cert_code' => bin2hex(random_bytes(4))]);
       }
})
Solution
getOwnerRecord() ?
Managing relationships - Panels - Filament
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Access parent $record in relation manager
FilamentFFilament / ❓┊help
2y ago
How to access Parent data to relation manager?
FilamentFFilament / ❓┊help
3y ago
Is it possible to pass the parent record to the gate of a relation manager?
FilamentFFilament / ❓┊help
11mo ago
relation manager record information
FilamentFFilament / ❓┊help
2y ago