to override delete button on nova add this to model class
public function delete()
{
$this->setKeysForSaveQuery($this->newModelQuery())->update(['active' => false]);
return true;
}
this will make delete button to update active field instead of delete it.
Top comments (1)
how about the update button?