예제 #1
0
파일: Entry.php 프로젝트: vegax87/Strimoid
 public function delete()
 {
     foreach ($this->replies as $reply) {
         $reply->delete();
     }
     $this->notifications()->delete();
     return parent::delete();
 }
예제 #2
0
 public function delete()
 {
     foreach ($this->replies as $reply) {
         $reply->delete();
     }
     Content::where('id', $this->content_id)->decrement('comments_count');
     return parent::delete();
 }
예제 #3
0
파일: Group.php 프로젝트: vegax87/Strimoid
 public function delete()
 {
     $this->deleteAvatar();
     $this->deleteStyle();
     return parent::delete();
 }
예제 #4
0
 public function delete()
 {
     Content::where('id', $this->content_id)->decrement('related_count');
     return parent::delete();
 }