Fix clearing of configs when seeding

This commit is contained in:
James Brooks
2016-05-25 20:00:33 +01:00
parent b120c37cbc
commit 9e3f07742b
2 changed files with 36 additions and 3 deletions

View File

@@ -90,6 +90,18 @@ class Repository
$this->model->where('name', $name)->delete();
}
/**
* Truncate all settings.
*
* @return void
*/
public function truncate()
{
$this->stale = true;
$this->model->query()->delete();
}
/**
* Is the config state stale?
*