Exemplo n.º 1
0
 /**
  * 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();
 }
Exemplo n.º 3
0
 public function delete()
 {
     $this->users->where('list_id', $list->id)->delete();
     parent::delete();
 }
Exemplo 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();
 }