From db22469f0692d2278b1881f6432e151551d9403d Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 12 Feb 2019 01:05:17 -0700 Subject: [PATCH] Add AvatarObserver --- app/Observers/AvatarObserver.php | 75 ++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 app/Observers/AvatarObserver.php 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) + { + // + } +}