mirror of
https://github.com/cp6/my-idlers.git
synced 2024-11-16 23:42:32 +01:00
28 lines
803 B
PHP
28 lines
803 B
PHP
|
<?php
|
||
|
|
||
|
namespace Database\Factories;
|
||
|
|
||
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||
|
|
||
|
class DomainsFactory extends Factory
|
||
|
{
|
||
|
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")))))
|
||
|
];
|
||
|
}
|
||
|
}
|