Doh. Factories are dev only.
This commit is contained in:
@@ -25,8 +25,11 @@ class MetricPointSeeder extends Seeder
|
||||
for ($i=0; $i < 11; $i++) {
|
||||
$metricTime = (new DateTime())->sub(new DateInterval('PT'.$i.'H'));
|
||||
|
||||
$pointFactory = factory('CachetHQ\Cachet\Models\MetricPoint');
|
||||
$point = $pointFactory->create();
|
||||
$point = MetricPoint::create([
|
||||
'metric_id' => 1,
|
||||
'value' => rand(1, 100),
|
||||
'created_at' => $metricTime,
|
||||
]);
|
||||
|
||||
$point->update([
|
||||
'created_at' => $metricTime,
|
||||
|
||||
Reference in New Issue
Block a user