coolify/database/seeders/StandaloneDockerSeeder.php

26 lines
541 B
PHP
Raw Permalink Normal View History

2023-03-27 12:31:42 +00:00
<?php
namespace Database\Seeders;
use App\Models\StandaloneDocker;
use Illuminate\Database\Seeder;
class StandaloneDockerSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
2024-08-16 00:05:00 +00:00
if (StandaloneDocker::find(0) == null) {
StandaloneDocker::create([
'id' => 0,
'uuid' => 'docker',
2024-08-16 00:05:00 +00:00
'name' => 'Standalone Docker 1',
'network' => 'coolify',
'server_id' => 0,
]);
}
2023-03-27 12:31:42 +00:00
}
}