Support the ongoing development of Laravel.io →
posted 10 years ago
Eloquent
Last updated 2 years ago.
0

Okay, so the solution was not that simple at first sight but absolutely doable. Eventually I made my own Trait for this particular purpose. The two file I used as base was:

  • Illuminate/Database/Eloquent/SoftDeletingScope.php
  • Illuminate/Database/Eloquent/SoftDeletingTrait.php

After a few minutes it's pretty easy to create your own Trait for similar scenarios.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

orosznyet orosznyet Joined 6 Apr 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.