public static function boot() { parent::boot(); Article::deleting(function ($article) { File::delete($article->document); }); }