public static function boot() { parent::boot(); Product::deleting(function ($product) { File::delete($product->image); }); }