File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 1717use CachetHQ \Cachet \Models \Metric ;
1818use CachetHQ \Cachet \Models \MetricPoint ;
1919use CachetHQ \Cachet \Models \Setting ;
20+ use CachetHQ \Cachet \Models \Subscriber ;
2021use CachetHQ \Cachet \Models \User ;
2122use DateInterval ;
2223use DateTime ;
@@ -64,6 +65,7 @@ public function fire()
6465 $ this ->seedMetricPoints ();
6566 $ this ->seedMetrics ();
6667 $ this ->seedSettings ();
68+ $ this ->seedSubscribers ();
6769 $ this ->seedUsers ();
6870
6971 $ this ->info ('Database seeded with demo data successfully! ' );
@@ -293,6 +295,16 @@ protected function seedSettings()
293295 }
294296 }
295297
298+ /**
299+ * Seed the subscribers.
300+ *
301+ * @return void
302+ */
303+ protected function seedSubscribers ()
304+ {
305+ Subscriber::truncate ();
306+ }
307+
296308 /**
297309 * Seed the users table.
298310 *
You can’t perform that action at this time.
0 commit comments