my-idlers/database/factories/DomainsFactory.php
cp6 a314ac99ef Initial v2 commit
Initial v2 commit

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

33 lines
888 B
PHP

<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
class DomainsFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'id' => $this->faker->unique()->bothify('???#??#?'),
'domain' => $this->faker->domainWord,
'extension' => 'com',
'ns1' => null,
'ns2' => null,
'ns3' => null,
'provider_id' => $this->faker->numberBetween(1, 27),
'label' => null,
'price' => 9.99,
'currency' => 'USD',
'payment_term' => 4,
'owned_since' => $this->faker->dateTimeThisDecade,
'next_due_date' => date('Y-m-d',strtotime('+130 days',strtotime(str_replace('/', '-', date("Y-m-d")))))
];
}
}