Ejemplo n.º 1
0
 /**
  * Delete all the saved models.
  *
  * @return \League\FactoryMuffin\FactoryMuffin
  */
 public function deleteSaved()
 {
     $this->modelStore->deleteSaved();
     return $this;
 }
Ejemplo n.º 2
0
 /**
  * Delete all the saved models.
  *
  * @throws \League\FactoryMuffin\Exceptions\DeletingFailedException
  *
  * @return void
  */
 public function deleteSaved()
 {
     parent::deleteSaved();
     try {
         $this->storage->flush();
     } catch (\Exception $e) {
         throw new DeletingFailedException([$e]);
     }
 }