mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 21:49:01 +01:00
Doh. Factories are dev only.
This commit is contained in:
parent
f7b53c06f6
commit
5b1c7a69dd
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user