2023-03-27 08:44:31 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Database\Seeders;
|
|
|
|
|
|
|
|
use App\Models\Environment;
|
2023-03-27 16:14:33 +00:00
|
|
|
use App\Models\StandaloneDocker;
|
2023-03-27 08:44:31 +00:00
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
|
|
|
|
class DBSeeder extends Seeder
|
|
|
|
{
|
|
|
|
public function run(): void
|
|
|
|
{
|
|
|
|
$environment_1 = Environment::find(1);
|
2023-03-27 16:14:33 +00:00
|
|
|
$standalone_docker_1 = StandaloneDocker::find(1);
|
2023-03-30 13:52:19 +00:00
|
|
|
// Database::create([
|
|
|
|
// 'id' => 1,
|
|
|
|
// 'name'=> "My first database",
|
|
|
|
// 'environment_id' => $environment_1->id,
|
|
|
|
// 'destination_id' => $standalone_docker_1->id,
|
|
|
|
// 'destination_type' => StandaloneDocker::class,
|
|
|
|
// ]);
|
2023-03-27 08:44:31 +00:00
|
|
|
}
|
|
|
|
}
|