This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

owlcoder155988
owlcoder155988

I want to change force deleteing on Products model in shopaholic plugin. It will be great to allow user disable soft deleting by extending a model. We have now protected $forceDeleting = false; We can make a method like setForceDeleting in October\Rain\Database\Traits\SoftDelete. so in the extending plugin we can make

Product::extend(function (Product $model) { $model->setForceDeleting(false); });

Last updated

1-1 of 1

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.