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 Al Elliott, 1 year ago
by Blackpig, 1 year ago
by Dan Harrin, 1 year ago
No comments yet…
No comments yet…