diff --git a/app/Observers/AvatarObserver.php b/app/Observers/AvatarObserver.php new file mode 100644 index 00000000..cdc2faa1 --- /dev/null +++ b/app/Observers/AvatarObserver.php @@ -0,0 +1,75 @@ +media_path); + @unlink($path); + } + + /** + * Handle the avatar "restored" event. + * + * @param \App\Avatar $avatar + * @return void + */ + public function restored(Avatar $avatar) + { + // + } + + /** + * Handle the avatar "force deleted" event. + * + * @param \App\Avatar $avatar + * @return void + */ + public function forceDeleted(Avatar $avatar) + { + // + } +}