title: How to detect force delete in model event
body: <p>I have set up a model event to check when an image is deleted and delete the related image_size model entries. However image uses soft deletes so if it is being soft deleted then I want to soft delete the image_size records but if the image is being hard deleted using forceDelete then I want to hard delete the image_size records. Is there a way to detect what type of delete it is and act accordingly. Here is what I have so far in my Image model:</p>
  
  <pre><code>&lt;?php
  
  namespace App;
  
  use Illuminate\Database\Eloquent\Model;
  use Illuminate\Database\Eloquent\SoftDeletes;
  
  class Image extends Model
  {
      use SoftDeletes;
  
      /**
       * The attributes that are mass assignable.
       *
       * @var array
       */
      protected $fillable = ['url', 'thumb_url', 'filename'];
  
      /**
       * Relationship to image sizes
       */
      public function sizes()
      {
          return $this-&gt;hasMany('App\Image_size');
      }
  
      /**
      * Model events
      */
      protected static function boot() {
          parent::boot();
  
          static::deleting(function($image) { // before delete() method call this
               $image-&gt;sizes()-&gt;delete();
          });
      }
  }
  </code></pre>