coolify/database/seeders/StandaloneDockerSeeder.php

25 lines
505 B
PHP
Raw Normal View History

2023-03-27 14:31:42 +02: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 02:05:00 +02:00
if (StandaloneDocker::find(0) == null) {
StandaloneDocker::create([
'id' => 0,
'name' => 'Standalone Docker 1',
'network' => 'coolify',
'server_id' => 0,
]);
}
2023-03-27 14:31:42 +02:00
}
}