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_
einnlleinhatt_14mo ago
Show your screenshot
Resonance
ResonanceOP14mo ago
what screenshot?
einnlleinhatt_
einnlleinhatt_14mo ago
Your problem? Like what do you mean by resource name ?
Resonance
ResonanceOP14mo ago
This is a screenshot grabbed at the demo site
No description
Resonance
ResonanceOP14mo 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_
einnlleinhatt_14mo ago
Ohh just need to put this
protected static ?string $recordTitleAttribute = 'name';
protected static ?string $recordTitleAttribute = 'name';

Did you find this page helpful?