Browse Source

live changes, added diferent hours in seeds

Serge 5 years ago
parent
commit
1282a9ae66
1 changed files with 1 additions and 1 deletions
  1. 1 1
      database/factories/LocationFactory.php

+ 1 - 1
database/factories/LocationFactory.php

@@ -20,7 +20,7 @@ $factory->define(Location::class, function (Faker $faker) {
     return [
         'lat' => array_random($latArray),
         'lng' => array_random($lngArray),
-        'created_at' => Carbon::now()->subDays(rand(1, 10)),
+        'created_at' => Carbon::now()->subDays(rand(1, 10))->subHours(rand(8, -8)),
         'user_id' => null,//
     ];
 });