How to prevent deleting a record when it has a child record?
Modify the delete action to delete button (or else) if child relationship exists
DeleteAction::make()->hidden(fn ($record) => $record->childRelationship()->exists())
by Ida Bagus Gede Pramana Adi Putra, 2 years ago
by Mahfoud Galfout, 2 years ago
by Aprod, 2 years ago
No comments yet…
No comments yet…