lots of progress
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\Site;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\SslCertificate>
|
||||
*/
|
||||
class SslCertificateFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
$issuers = [
|
||||
"Let's Encrypt",
|
||||
'DigiCert Inc',
|
||||
'Google Trust Services',
|
||||
'Amazon',
|
||||
'Cloudflare Inc',
|
||||
];
|
||||
|
||||
return [
|
||||
'site_id' => Site::factory(),
|
||||
'issuer' => fake()->randomElement($issuers),
|
||||
'expires_at' => fake()->dateTimeBetween('now', '+365 days'),
|
||||
'checked_at' => fake()->dateTimeBetween('-7 days', 'now'),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user