18 protected $create_since;
55 $since = $this->create_since ?: time();
56 $until = $this->create_until ?: time();
58 return $this->
faker()->numberBetween($since, $until);
faker(string $locale='en_US')
Returns an instance of faker.
Functions for use as event handlers or other situations where you need a globally accessible callable...
static normalizeTimestamp($time)
Returns timestamp value of the time representation.
setCreateSince($since='now')
Set a time for entities to be created after.
setCreateUntil($until='now')
Set a time for entities to be created until.
getRandomCreationTimestamp()
Get a random timestamp between a lower and upper time.
trait TimeHelpers
Trait to add time helpers.