vito/database/factories/SslFactory.php
Saeed Vaziry de468ae1ba
Manage site aliases (#206)
* manage site aliases

* build assets

* fix tests
2024-05-15 11:23:24 +02:00

27 lines
638 B
PHP

<?php
namespace Database\Factories;
use App\Enums\SslStatus;
use App\Models\Ssl;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Carbon;
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'],
];
}
}