Explorar o código

live changes, added diferent hours in seeds

Serge %!s(int64=5) %!d(string=hai) anos
pai
achega
1282a9ae66
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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,//
     ];
 });