Files
vito/database/factories/ServiceFactory.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

26 lines
484 B
PHP

<?php
namespace Database\Factories;
use App\Enums\ServiceStatus;
use App\Models\Service;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends Factory<Service>
*/
class ServiceFactory extends Factory
{
protected $model = Service::class;
public function definition(): array
{
return [
'server_id' => 1,
'type' => 'webserver',
'name' => 'nginx',
'status' => ServiceStatus::READY,
];
}
}