2023-03-28 13:47:37 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Database\Seeders;
|
|
|
|
|
|
|
|
use App\Models\Application;
|
|
|
|
use App\Models\ApplicationSetting;
|
|
|
|
use App\Models\Environment;
|
|
|
|
use App\Models\GithubApp;
|
|
|
|
use App\Models\StandaloneDocker;
|
|
|
|
use App\Models\SwarmDocker;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
|
|
|
|
class ApplicationSettingsSeeder extends Seeder
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the database seeds.
|
|
|
|
*/
|
|
|
|
public function run(): void
|
|
|
|
{
|
2023-04-14 11:18:55 +00:00
|
|
|
$application_1 = Application::find(1)->load(['settings']);
|
2023-05-31 09:24:02 +00:00
|
|
|
$application_1->settings->is_debug_enabled = false;
|
2023-04-14 11:18:55 +00:00
|
|
|
$application_1->settings->save();
|
2023-03-28 13:47:37 +00:00
|
|
|
}
|
|
|
|
}
|