Laravel 5: Extend delete() on model
问题 I'm using L5.3.31 and have the following models: Addon Image Relationship: // Addon.php public function images() { return $this->hasMany('App\Image'); } // Image.php public function addon() { return $this->belongsTo('App\Addon'); } I now want to extend the delete() method to delete some images that are saved on the file system when deleting an image object. To my understand, in order to do this I need to extend the delete() method on the Image model. Now, on my image model, if I try to do