This commit is contained in:
Richard Dern
2022-01-12 00:35:37 +01:00
commit 400e3d01f1
1363 changed files with 57778 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
<?php
namespace App\Models\Observers;
use App\Models\FeedItem;
use Illuminate\Support\Facades\Storage;
class FeedItemObserver
{
/**
* Handle the feed item "deleted" event.
*/
public function deleted(FeedItem $feedItem)
{
Storage::deleteDirectory($feedItem->getStoragePath());
}
}