© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
vahnmarty

How to customize repeater delete Item?

When using
repeater::deleteItem
repeater::deleteItem
on a certain Repeater, suddenly it affects to other Repeater. I have repeater for
parents
parents
,
children
children
,
activities
activities
. Everytime I delete an item from
activities
activities
, a notification from Parent Repeater triggers.


Repeater::make('parents')
  ->registerListeners([
    'repeater::deleteItem' => [
        function (Component $component, string $statePath, string $uuidToDelete): void { 
            ....
            if() {

            }else{
              Notification::make()
                    ->title('Unable to delete this parent')
                     ->body('The application must have at least 1 parent.')
                     ->danger()
                     ->send();
            }
        }
      ]
  ])
Repeater::make('parents')
  ->registerListeners([
    'repeater::deleteItem' => [
        function (Component $component, string $statePath, string $uuidToDelete): void { 
            ....
            if() {

            }else{
              Notification::make()
                    ->title('Unable to delete this parent')
                     ->body('The application must have at least 1 parent.')
                     ->danger()
                     ->send();
            }
        }
      ]
  ])
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

Delete Item in Repeater
FilamentFFilament / ❓┊help
10mo ago
How to listen for repeater delete item action
FilamentFFilament / ❓┊help
5mo ago
How customize Repeater's item using Livewire component?
FilamentFFilament / ❓┊help
16mo ago
Custom Page Repeater Delete Item
FilamentFFilament / ❓┊help
3y ago