Delete Action

How to achieve this, that the information will show what name is being deleted? Ive search the source code and it seems that there's nothing special on the Actions\DeleteAction::make(), Im replicating it in my project but it just shows the resource name, not the name of the data being deleted.
No description
Solution:
Ohh just need to put this
protected static ?string $recordTitleAttribute = 'name';
protected static ?string $recordTitleAttribute = 'name';
...
Jump to solution
7 Replies
einnlleinhatt_
Show your screenshot
Resonance
ResonanceOP2y ago
what screenshot?
einnlleinhatt_
Your problem? Like what do you mean by resource name ?
Resonance
ResonanceOP2y ago
This is a screenshot grabbed at the demo site
No description
Resonance
ResonanceOP2y ago
and this is the screenshot on my project, it just grabs the resource name which is the "patient registry" and not the name of the record being deleted
No description
Solution
einnlleinhatt_
Ohh just need to put this
protected static ?string $recordTitleAttribute = 'name';
protected static ?string $recordTitleAttribute = 'name';

Did you find this page helpful?