custom query before delete

custom query before delete
No description
4 Replies
wandiaprianto
wandiapriantoOP14mo ago
how to implement in version 3.x
ChesterS
ChesterS14mo ago
God damn I hate when people paste screenshots to code instead of code. Anyway try this
DeleteAction::make('delete')->before(function($record) {
if (! $record->team->subscribed()) {
/// ....
}
})
DeleteAction::make('delete')->before(function($record) {
if (! $record->team->subscribed()) {
/// ....
}
})
@wandiaprianto
Dennis Koch
Dennis Koch14mo ago
It’s for a reason we have this in #✅┊rules 🤷
wandiaprianto
wandiapriantoOP14mo ago
thank you everyone, and sorry i will not send screenshot anymore
Want results from more Discord servers?
Add your server