1
0
mirror of https://github.com/cp6/my-idlers.git synced 2024-11-16 15:33:44 +01:00
my-idlers/database/factories/DNSFactory.php
cp6 a314ac99ef Initial v2 commit
Initial v2 commit

Laravel project
2022-02-18 15:48:32 +11:00

24 lines
540 B
PHP

<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
class DNSFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'id' => $this->faker->unique()->bothify('???#??#?'),
'dns_type' => $this->faker->shuffleArray(['A', 'AAA']),
'value1' => $this->faker->shuffleArray(['dev', 'blog', 'panel']),
'value2' => $this->faker->ipv4
];
}
}