title: How can I set future Soft Deleted in laravel
body: <p>According to this  Question : <a href="https://stackoverflow.com/questions/28693284/is-it-possible-to-perform-future-soft-delete-in-laravel">Is it possible to perform &quot;future&quot; soft delete in laravel?</a>
  Is it can use in laravel 5.6  ? and If It can Where can I create Traits </p>
  
  <p>I try to create Traits in app\Traits\ but when I call in in models It always said Trait 'App\Traits\MySoftDeletingTrait' not found</p>
  
  <p>I created 2 file  in app\Traits
  - MySoftDeletingScope.php</p>
  
  <pre><code>namespace App\Traits;
  
  class MySoftDeletingScope extends Illuminate\Database\Eloquent\SoftDeletingScope {
      public function apply(Builder $builder)
      {
          $model = $builder-&gt;getModel();
  
          $builder-&gt;where($model-&gt;getQualifiedDeletedAtColumn(), '&lt;=', Carbon::now());
  
          $this-&gt;extend($builder);
      }
  }
  
  the 2nd one MySoftDeleteingTrait.php
  
  namespace App\Traits;
  
  use Illuminate\Database\Eloquent\SoftDeletingTrait;
  
  trait MySoftDeletingTrait {
      public static function bootSoftDeletingTrait()
      {
          static::addGlobalScope(new MySoftDeletingScope);
      }
  }
  </code></pre>
  
  <p>In Uer php I call</p>
  
  <p>use App\Traits\MySoftDeletingTrait;
  use Notifiable, HasRoles, MySoftDeletingTrait;</p>