lasthourcloud/database/seeders/SwarmDockerSeeder.php

26 lines
534 B
PHP
Raw Normal View History

2023-03-27 12:31:42 +00:00
<?php
namespace Database\Seeders;
use App\Models\Destination;
use App\Models\Server;
use App\Models\StandaloneDocker;
use App\Models\SwarmDocker;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class SwarmDockerSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
2023-05-02 10:47:52 +00:00
$server_2 = Server::find(2);
2023-03-27 12:31:42 +00:00
SwarmDocker::create([
2023-05-02 10:47:52 +00:00
'name' => 'Swarm Docker 1',
'server_id' => $server_2->id,
2023-03-27 12:31:42 +00:00
]);
}
}