1
0
mirror of https://github.com/cp6/my-idlers.git synced 2024-11-16 23:42:32 +01:00
my-idlers/database/factories/DomainsFactory.php
cp6 fd22b0bf58 V2 (Laravel re-make)
V2 (Laravel re-make)
2022-03-06 02:02:12 +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")))))
];
}
}