mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-03 15:02:34 +00:00
* wip * wip * cleanup * notification channels * phpstan * services * remove server types * refactoring * refactoring
32 lines
662 B
PHP
32 lines
662 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Site;
|
|
use App\SiteTypes\Laravel;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends Factory<Site>
|
|
*/
|
|
class SiteFactory extends Factory
|
|
{
|
|
protected $model = Site::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'server_id' => 1,
|
|
'type' => Laravel::id(),
|
|
'domain' => 'test.com',
|
|
'web_directory' => '/',
|
|
'path' => '/home',
|
|
'status' => 'ready',
|
|
'progress' => '100',
|
|
'php_version' => '8.2',
|
|
'branch' => 'main',
|
|
'user' => 'vito',
|
|
];
|
|
}
|
|
}
|