title: Laravel boot method
body: <p>In my models I've setup boot methods so when I softdelete a record the related records are softdeleted aswell. Like this:</p>
  
  <p>Company.php</p>
  
  <pre><code>protected static function boot()
      {
          parent::boot();
          static::deleting(function($company) {
              $company-&gt;department()-&gt;delete();
          });
      }
  </code></pre>
  
  <p>Department.php:</p>
  
  <pre><code> protected static function boot()
      {
          parent::boot();
          static::deleting(function($department) {
              dd('test');
          });
      }
  </code></pre>
  
  <p>So when I want to softdelete a company the departments should also be softdeleted. But when I <code>dd</code> in <code>static::deleting</code>(Department.php) this is not reached. When I <code>dd</code> like this:</p>
  
  <p>Department.php</p>
  
  <pre><code>protected static function boot()
      {
          parent::boot();
          dd('test');
          static::deleting(function($department) {
          });
      }
  </code></pre>
  
  <p>Result is <code>test</code></p>
  
  <p>What am I doing wrong here?</p>