Files
vito/database/factories/SslFactory.php
Saeed Vaziry 131b828807 Plugins base (#613)
* wip

* wip

* cleanup

* notification channels

* phpstan

* services

* remove server types

* refactoring

* refactoring
2025-06-14 14:35:18 +02:00

30 lines
671 B
PHP

<?php
namespace Database\Factories;
use App\Enums\SslStatus;
use App\Models\Ssl;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Carbon;
/**
* @extends Factory<Ssl>
*/
class SslFactory extends Factory
{
protected $model = Ssl::class;
public function definition(): array
{
return [
'type' => $this->faker->word(),
'certificate' => $this->faker->word(),
'pk' => $this->faker->word(),
'ca' => $this->faker->word(),
'expires_at' => Carbon::now()->addDay(),
'status' => SslStatus::CREATED,
'domains' => ['example.com'],
];
}
}