mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-03 06:56:15 +00:00
init
This commit is contained in:
26
database/factories/SslFactory.php
Normal file
26
database/factories/SslFactory.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?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',
|
||||
];
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user