get the generated IDs from the middle of the sha1 hash
This commit is contained in:
@@ -4,7 +4,7 @@ use Faker\Generator as Faker;
|
||||
|
||||
$factory->define(App\Models\Acars::class, function (Faker $faker) {
|
||||
return [
|
||||
'id' => substr($faker->unique()->sha1, 0, 12),
|
||||
'id' => substr($faker->unique()->sha1, 28, 12),
|
||||
'pirep_id' => '', # fill this out by
|
||||
'log' => $faker->text(200),
|
||||
'lat' => $faker->latitude,
|
||||
|
||||
Reference in New Issue
Block a user