diff --git a/app/Console/Commands/DemoSeederCommand.php b/app/Console/Commands/DemoSeederCommand.php index c2025185..477e02b6 100644 --- a/app/Console/Commands/DemoSeederCommand.php +++ b/app/Console/Commands/DemoSeederCommand.php @@ -222,6 +222,7 @@ EINCIDENT; ]; Incident::truncate(); + IncidentUpdate::truncate(); foreach ($defaultIncidents as $defaultIncident) { $incident = Incident::create($defaultIncident); diff --git a/app/Settings/Repository.php b/app/Settings/Repository.php index 6b398bce..4f3fdcd9 100644 --- a/app/Settings/Repository.php +++ b/app/Settings/Repository.php @@ -26,7 +26,7 @@ class Repository * * @var string[] */ - const NOT_BOOL = [ + protected $notBooleans = [ 'app_incident_days', ]; @@ -154,7 +154,7 @@ class Repository return $value; } - if (!in_array($key, self::NOT_BOOL) && in_array($value, ['0', '1'])) { + if (!in_array($key, $this->notBooleans) && in_array($value, ['0', '1'])) { return (bool) $value; }