/**
  * Delete the group.
  *
  * @return bool
  */
 public function delete()
 {
     $this->users()->detach();
     return parent::delete();
 }
 /**
  * {@inheritDoc}
  */
 public function delete()
 {
     if ($this->exists) {
         $this->activations()->delete();
         $this->persistences()->delete();
         $this->reminders()->delete();
         $this->roles()->detach();
         $this->throttle()->delete();
     }
     parent::delete();
 }
 public function delete()
 {
     $this->users->where('list_id', $list->id)->delete();
     parent::delete();
 }
Esempio n. 4
0
 /**
  * Delete the model from the database.
  *
  * @return bool|null
  * @throws \Exception
  */
 public function delete()
 {
     \DB::getMongoDB()->oauth_clients->remove(['client_id' => $this->api['basic_key']]);
     parent::delete();
 }