New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trait method performDeleteOnModel collides with SoftDelete trait #5
Comments
Thanks for reporting. I will try to find a workaround to be able to use it along with About |
@hootlex Used The only thing that's keeping me from using soft delete now is that |
I have removed the unused variable in v1.0.4. The only reason Can you provide more details about |
Thanks! Updating right now :) When using both traits, I just make it use the SoftDeletes use SoftDeletes, Moderatable {
SoftDeletes::performDeleteOnModel insteadof Moderatable;
} |
You are welcome. |
Trait method performDeleteOnModel has not been applied, because there are collisions with other trait methods on User
.\Illuminate\Database\Eloquent\SoftDeletes
has the same methodprotected function performDeleteOnModel()
. Can I use these together somehow? Should I just use the method from the soft delete trait?Small update: both traits also define the
$forceDeleting
property, which cannot be rewritten or aliased. Why exactly is it being use? There's no need for it?The text was updated successfully, but these errors were encountered: