An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
format muhahaha
Andras Bacsai82a01b4483e9
diff --git a/app/Actions/CoolifyTask/RunRemoteProcess.php b/app/Actions/CoolifyTask/RunRemoteProcess.phpindex 0a7892f989..192144f8bd 100644--- a/app/Actions/CoolifyTask/RunRemoteProcess.php+++ b/app/Actions/CoolifyTask/RunRemoteProcess.php@@ -66,8 +66,8 @@ class RunRemoteProcess}return collect($decoded)- ->sortBy(fn($i) => $i['order'])- ->map(fn($i) => $i['output'])+ ->sortBy(fn ($i) => $i['order'])+ ->map(fn ($i) => $i['output'])->implode("");}diff --git a/app/Actions/Database/StartPostgresql.php b/app/Actions/Database/StartPostgresql.phpindex 4b9b99f3e6..1b5d22f444 100644--- a/app/Actions/Database/StartPostgresql.php+++ b/app/Actions/Database/StartPostgresql.php@@ -134,15 +134,15 @@ class StartPostgresql$environment_variables->push("$env->key=$env->value");}- if ($environment_variables->filter(fn($env) => Str::of($env)->contains('POSTGRES_USER'))->isEmpty()) {+ if ($environment_variables->filter(fn ($env) => Str::of($env)->contains('POSTGRES_USER'))->isEmpty()) {$environment_variables->push("POSTGRES_USER={$this->database->postgres_user}");}- if ($environment_variables->filter(fn($env) => Str::of($env)->contains('POSTGRES_PASSWORD'))->isEmpty()) {+ if ($environment_variables->filter(fn ($env) => Str::of($env)->contains('POSTGRES_PASSWORD'))->isEmpty()) {$environment_variables->push("POSTGRES_PASSWORD={$this->database->postgres_password}");}- if ($environment_variables->filter(fn($env) => Str::of($env)->contains('POSTGRES_DB'))->isEmpty()) {+ if ($environment_variables->filter(fn ($env) => Str::of($env)->contains('POSTGRES_DB'))->isEmpty()) {$environment_variables->push("POSTGRES_DB={$this->database->postgres_db}");}return $environment_variables->all();diff --git a/app/Actions/Fortify/UpdateUserProfileInformation.php b/app/Actions/Fortify/UpdateUserProfileInformation.phpindex c8f2cce591..85caf943b7 100644--- a/app/Actions/Fortify/UpdateUserProfileInformation.php+++ b/app/Actions/Fortify/UpdateUserProfileInformation.php@@ -29,8 +29,10 @@ class UpdateUserProfileInformation implements UpdatesUserProfileInformation],])->validateWithBag('updateProfileInformation');- if ($input['email'] !== $user->email &&- $user instanceof MustVerifyEmail) {+ if (+ $input['email'] !== $user->email &&+ $user instanceof MustVerifyEmail+ ) {$this->updateVerifiedUser($user, $input);} else {$user->forceFill([diff --git a/app/Actions/Proxy/CheckConfigurationSync.php b/app/Actions/Proxy/CheckConfigurationSync.phpindex af7804cb74..b6dcb1069e 100644--- a/app/Actions/Proxy/CheckConfigurationSync.php+++ b/app/Actions/Proxy/CheckConfigurationSync.php@@ -22,5 +22,4 @@ class CheckConfigurationSyncreturn $proxy_configuration;}-}diff --git a/app/Actions/Proxy/SaveConfigurationSync.php b/app/Actions/Proxy/SaveConfigurationSync.phpindex f4c0090793..c176075168 100644--- a/app/Actions/Proxy/SaveConfigurationSync.php+++ b/app/Actions/Proxy/SaveConfigurationSync.php@@ -20,4 +20,4 @@ class SaveConfigurationSync"echo '$docker_compose_yml_base64' | base64 -d > $proxy_path/docker-compose.yml",], $server);}-}\ No newline at end of file+}diff --git a/app/Console/Commands/NotifyDemo.php b/app/Console/Commands/NotifyDemo.phpindex 37b84d4894..72e4a37e68 100644--- a/app/Console/Commands/NotifyDemo.php+++ b/app/Console/Commands/NotifyDemo.php@@ -43,15 +43,16 @@ class NotifyDemo extends Commandstyle('coolify')->color('#9333EA');style('title-box')->apply('mt-1 px-2 py-1 bg-coolify');- render(<<<'HTML'+ render(+ <<<'HTML'<div><div class="title-box">Coolify</div>- <p class="ml-1 mt-1 ">+ <p class="mt-1 ml-1 ">Demo Notify <strong class="text-coolify">=></strong> Send a demo notification to a given channel.</p>- <p class="ml-1 mt-1 bg-coolify px-1">+ <p class="px-1 mt-1 ml-1 bg-coolify">php artisan app:demo-notify {channel}</p><div class="my-1">diff --git a/app/Console/Commands/SyncBunny.php b/app/Console/Commands/SyncBunny.phpindex 131d201303..3f4bc412a3 100644--- a/app/Console/Commands/SyncBunny.php+++ b/app/Console/Commands/SyncBunny.php@@ -64,7 +64,7 @@ class SyncBunny extends Command]);});try {- Http::pool(fn(Pool $pool) => [+ Http::pool(fn (Pool $pool) => [$pool->storage(file: "$parent_dir/$compose_file")->put("/$bunny_cdn_storage_name/$bunny_cdn_path/$compose_file"),$pool->storage(file: "$parent_dir/$compose_file_prod")->put("/$bunny_cdn_storage_name/$bunny_cdn_path/$compose_file_prod"),$pool->storage(file: "$parent_dir/$production_env")->put("/$bunny_cdn_storage_name/$bunny_cdn_path/$production_env"),@@ -73,7 +73,7 @@ class SyncBunny extends Command$pool->storage(file: "$parent_dir/$versions")->put("/$bunny_cdn_storage_name/$bunny_cdn_path/$versions"),]);ray("{$bunny_cdn}/{$bunny_cdn_path}");- Http::pool(fn(Pool $pool) => [+ Http::pool(fn (Pool $pool) => [$pool->purge("$bunny_cdn/$bunny_cdn_path/$compose_file"),$pool->purge("$bunny_cdn/$bunny_cdn_path/$compose_file_prod"),$pool->purge("$bunny_cdn/$bunny_cdn_path/$production_env"),diff --git a/app/Console/Kernel.php b/app/Console/Kernel.phpindex a995adcc50..f26b2ef4d3 100644--- a/app/Console/Kernel.php+++ b/app/Console/Kernel.php@@ -17,7 +17,7 @@ class Kernel extends ConsoleKernel{protected function schedule(Schedule $schedule): void{-// $schedule->call(fn() => $this->check_scheduled_backups($schedule))->everyTenSeconds();+ // $schedule->call(fn() => $this->check_scheduled_backups($schedule))->everyTenSeconds();if (is_dev()) {$schedule->command('horizon:snapshot')->everyMinute();$schedule->job(new InstanceApplicationsStatusJob)->everyMinute();@@ -54,7 +54,6 @@ class Kernel extends ConsoleKernelbackup: $scheduled_backup))->cron($scheduled_backup->frequency);}-}protected function commands(): voiddiff --git a/app/Data/CoolifyTaskArgs.php b/app/Data/CoolifyTaskArgs.phpindex d451faa00b..1b30126f08 100644--- a/app/Data/CoolifyTaskArgs.php+++ b/app/Data/CoolifyTaskArgs.php@@ -22,7 +22,6 @@ class CoolifyTaskArgs extends Datapublic ?Model $model = null,public string $status = ProcessStatus::QUEUED->value,public bool $ignore_errors = false,- )- {+ ) {}}diff --git a/app/Data/ServerMetadata.php b/app/Data/ServerMetadata.phpindex 18f734ce44..b18ddab8e7 100644--- a/app/Data/ServerMetadata.php+++ b/app/Data/ServerMetadata.php@@ -11,7 +11,6 @@ class ServerMetadata extends Datapublic function __construct(public ?ProxyTypes $type,public ?ProxyStatus $status- )- {+ ) {}}diff --git a/app/Http/Controllers/Controller.php b/app/Http/Controllers/Controller.phpindex deced9de97..7284277e84 100644--- a/app/Http/Controllers/Controller.php+++ b/app/Http/Controllers/Controller.php@@ -24,7 +24,7 @@ class Controller extends BaseControllerabort(404);}return view('subscription', [- 'settings' => InstanceSettings::get()+ 'settings' => InstanceSettings::get(),]);}@@ -34,7 +34,7 @@ class Controller extends BaseControllerabort(404);}return view('settings.license', [- 'settings' => InstanceSettings::get()+ 'settings' => InstanceSettings::get(),]);}@@ -63,13 +63,11 @@ class Controller extends BaseController$settings = InstanceSettings::get();$database = StandalonePostgresql::whereName('coolify-db')->first();if ($database) {- $backup = $database->scheduledBackups->first();$s3s = S3Storage::whereTeamId(0)->get();}return view('settings.configuration', ['settings' => $settings,'database' => $database,- 'backup' => $backup ?? null,'s3s' => $s3s ?? [],]);} else {diff --git a/app/Http/Livewire/Dev/S3Test.php b/app/Http/Livewire/Dev/S3Test.phpindex 0d67717fa6..3a20224cd7 100644--- a/app/Http/Livewire/Dev/S3Test.php+++ b/app/Http/Livewire/Dev/S3Test.php@@ -31,7 +31,6 @@ class S3Test extends Component} catch (\Throwable $th) {return general_error_handler($th, $this, false);}-}public function get_files()diff --git a/app/Http/Livewire/Project/Database/BackupEdit.php b/app/Http/Livewire/Project/Database/BackupEdit.phpindex 56d4726726..39b29c83f5 100644--- a/app/Http/Livewire/Project/Database/BackupEdit.php+++ b/app/Http/Livewire/Project/Database/BackupEdit.php@@ -54,18 +54,13 @@ class BackupEdit extends Component} catch (\Exception $e) {$this->emit('error', $e->getMessage());}-}private function custom_validate(){-// if ($this->backup->save_s3) {-// if (!is_numeric($this->selected_storage_id)) {-// throw new \Exception('Invalid S3 Storage');-// } else {-// $this->backup->s3_storage_id = $this->selected_storage_id;-// }-// }+ if (!is_numeric($this->backup->s3_storage_id)) {+ $this->backup->s3_storage_id = null;+ }$isValid = validate_cron_expression($this->backup->frequency);if (!$isValid) {throw new \Exception('Invalid Cron / Human expression');diff --git a/app/Http/Livewire/Project/Database/BackupExecution.php b/app/Http/Livewire/Project/Database/BackupExecution.phpindex 5e48bbec4a..f963fa1d6e 100644--- a/app/Http/Livewire/Project/Database/BackupExecution.php+++ b/app/Http/Livewire/Project/Database/BackupExecution.php@@ -11,7 +11,6 @@ class BackupExecution extends Componentpublic function download(){-}public function delete(): voiddiff --git a/app/Http/Livewire/Project/Database/BackupNow.php b/app/Http/Livewire/Project/Database/BackupNow.phpnew file mode 100644index 0000000000..ea25c47445--- /dev/null+++ b/app/Http/Livewire/Project/Database/BackupNow.php@@ -0,0 +1,18 @@+<?php++namespace App\Http\Livewire\Project\Database;++use App\Jobs\DatabaseBackupJob;+use Livewire\Component;++class BackupNow extends Component+{+ public $backup;+ public function backup_now()+ {+ dispatch(new DatabaseBackupJob(+ backup: $this->backup+ ));+ $this->emit('success', 'Backup queued. It will be available in a few minutes');+ }+}diff --git a/app/Http/Livewire/Project/Database/Postgresql/General.php b/app/Http/Livewire/Project/Database/Postgresql/General.phpindex 5f9da02ff5..c58bd51e37 100644--- a/app/Http/Livewire/Project/Database/Postgresql/General.php+++ b/app/Http/Livewire/Project/Database/Postgresql/General.php@@ -42,7 +42,7 @@ class General extends Componentpublic function save_init_script($script){- $this->database->init_scripts = filter($this->database->init_scripts, fn($s) => $s['filename'] !== $script['filename']);+ $this->database->init_scripts = filter($this->database->init_scripts, fn ($s) => $s['filename'] !== $script['filename']);$this->database->init_scripts = array_merge($this->database->init_scripts, [$script]);$this->database->save();$this->emit('success', 'Init script saved successfully.');@@ -53,8 +53,8 @@ class General extends Component$collection = collect($this->database->init_scripts);$found = $collection->firstWhere('filename', $script['filename']);if ($found) {- ray($collection->filter(fn($s) => $s['filename'] !== $script['filename'])->toArray());- $this->database->init_scripts = $collection->filter(fn($s) => $s['filename'] !== $script['filename'])->toArray();+ ray($collection->filter(fn ($s) => $s['filename'] !== $script['filename'])->toArray());+ $this->database->init_scripts = $collection->filter(fn ($s) => $s['filename'] !== $script['filename'])->toArray();$this->database->save();$this->refresh();$this->emit('success', 'Init script deleted successfully.');diff --git a/app/Http/Livewire/Settings/Backup.php b/app/Http/Livewire/Settings/Backup.phpindex 0b0dde7f23..6d714c93d1 100644--- a/app/Http/Livewire/Settings/Backup.php+++ b/app/Http/Livewire/Settings/Backup.php@@ -2,12 +2,12 @@namespace App\Http\Livewire\Settings;+use App\Jobs\DatabaseBackupJob;use App\Models\InstanceSettings;use App\Models\S3Storage;use App\Models\ScheduledDatabaseBackup;use App\Models\Server;use App\Models\StandalonePostgresql;-use App\Jobs\DatabaseBackupJob;use Livewire\Component;class Backup extends Component@@ -16,6 +16,7 @@ class Backup extends Componentpublic $s3s;public StandalonePostgresql|null $database = null;public ScheduledDatabaseBackup|null $backup = null;+ public $executions = [];protected $rules = ['database.uuid' => 'required',@@ -33,9 +34,13 @@ class Backup extends Component'database.postgres_password' => 'postgres password',];+ public function mount()+ {+ $this->backup = $this->database->scheduledBackups->first();+ $this->executions = $this->backup->executions;+ }public function add_coolify_database(){- ray('add_coolify_database');$server = Server::find(0);$out = instant_remote_process(['docker inspect coolify-db'], $server);$envs = format_docker_envs_to_json($out);@@ -68,7 +73,8 @@ class Backup extends Component$this->s3s = S3Storage::whereTeamId(0)->get();}- public function backup_now() {+ public function backup_now()+ {dispatch(new DatabaseBackupJob(backup: $this->backup));@@ -78,5 +84,4 @@ class Backup extends Component{$this->emit('success', 'Backup updated successfully');}-}diff --git a/app/Http/Livewire/Settings/Configuration.php b/app/Http/Livewire/Settings/Configuration.phpindex e4b7eb3f6a..965f0335b4 100644--- a/app/Http/Livewire/Settings/Configuration.php+++ b/app/Http/Livewire/Settings/Configuration.php@@ -77,35 +77,35 @@ class Configuration extends Component$schema = $url->getScheme();$traefik_dynamic_conf = ['http' =>+ [+ 'routers' =>[- 'routers' =>- [- 'coolify-http' =>- [- 'entryPoints' => [- 0 => 'http',- ],- 'service' => 'coolify',- 'rule' => "Host(`{$host}`)",- ],+ 'coolify-http' =>+ [+ 'entryPoints' => [+ 0 => 'http',],- 'services' =>+ 'service' => 'coolify',+ 'rule' => "Host(`{$host}`)",+ ],+ ],+ 'services' =>+ [+ 'coolify' =>+ [+ 'loadBalancer' =>[- 'coolify' =>+ 'servers' =>+ [+ 0 =>[- 'loadBalancer' =>- [- 'servers' =>- [- 0 =>- [- 'url' => 'http://coolify:80',- ],- ],- ],+ 'url' => 'http://coolify:80',],+ ],],+ ],],+ ],];if ($schema === 'https') {diff --git a/app/Http/Livewire/Team/Storage/Create.php b/app/Http/Livewire/Team/Storage/Create.phpindex 3edf29c203..ed7d277fbc 100644--- a/app/Http/Livewire/Team/Storage/Create.php+++ b/app/Http/Livewire/Team/Storage/Create.php@@ -70,7 +70,6 @@ class Create extends Component} catch (\Throwable $th) {return general_error_handler($th, $this);}-}private function test_s3_connection()diff --git a/app/Http/Middleware/TrustProxies.php b/app/Http/Middleware/TrustProxies.phpindex 559dd2fc3f..c80ad531b8 100644--- a/app/Http/Middleware/TrustProxies.php+++ b/app/Http/Middleware/TrustProxies.php@@ -20,7 +20,7 @@ class TrustProxies extends Middleware* @var int*/protected $headers =- Request::HEADER_X_FORWARDED_FOR |+ Request::HEADER_X_FORWARDED_FOR |Request::HEADER_X_FORWARDED_HOST |Request::HEADER_X_FORWARDED_PORT |Request::HEADER_X_FORWARDED_PROTO |diff --git a/app/Jobs/ApplicationDeploymentJob.php b/app/Jobs/ApplicationDeploymentJob.phpindex bed7e0a115..a37b609c7f 100644--- a/app/Jobs/ApplicationDeploymentJob.php+++ b/app/Jobs/ApplicationDeploymentJob.php@@ -434,7 +434,7 @@ class ApplicationDeploymentJob implements ShouldQueue}}// Add PORT if not exists, use the first port as default- if ($environment_variables->filter(fn($env) => Str::of($env)->contains('PORT'))->isEmpty()) {+ if ($environment_variables->filter(fn ($env) => Str::of($env)->contains('PORT'))->isEmpty()) {$environment_variables->push("PORT={$ports[0]}");}return $environment_variables->all();diff --git a/app/Jobs/ApplicationPullRequestUpdateJob.php b/app/Jobs/ApplicationPullRequestUpdateJob.phpindex 2b84cbe5ac..f540631836 100755--- a/app/Jobs/ApplicationPullRequestUpdateJob.php+++ b/app/Jobs/ApplicationPullRequestUpdateJob.php@@ -25,8 +25,7 @@ class ApplicationPullRequestUpdateJob implements ShouldQueuepublic int $pull_request_id,public string $deployment_uuid,public string $status- )- {+ ) {}public function handle()diff --git a/app/Jobs/CoolifyTask.php b/app/Jobs/CoolifyTask.phpindex 10bc893585..e3dd9640f2 100755--- a/app/Jobs/CoolifyTask.php+++ b/app/Jobs/CoolifyTask.php@@ -20,8 +20,7 @@ class CoolifyTask implements ShouldQueuepublic function __construct(public Activity $activity,public bool $ignore_errors = false,- )- {+ ) {}/**diff --git a/app/Jobs/DatabaseBackupJob.php b/app/Jobs/DatabaseBackupJob.phpindex 7879e31a03..3fdbea216f 100644--- a/app/Jobs/DatabaseBackupJob.php+++ b/app/Jobs/DatabaseBackupJob.php@@ -157,7 +157,7 @@ class DatabaseBackupJob implements ShouldQueue}$key = $this->s3->key;$secret = $this->s3->secret;-// $region = $this->s3->region;+ // $region = $this->s3->region;$bucket = $this->s3->bucket;$endpoint = $this->s3->endpoint;@@ -183,6 +183,5 @@ class DatabaseBackupJob implements ShouldQueue'message' => $this->backup_output,'size' => $this->size,]);-}}diff --git a/app/Jobs/SendMessageToDiscordJob.php b/app/Jobs/SendMessageToDiscordJob.phpindex 577b3a9076..66e3c1c1a0 100644--- a/app/Jobs/SendMessageToDiscordJob.php+++ b/app/Jobs/SendMessageToDiscordJob.php@@ -28,8 +28,7 @@ class SendMessageToDiscordJob implements ShouldQueuepublic function __construct(public string $text,public string $webhookUrl- )- {+ ) {}/**diff --git a/app/Models/Application.php b/app/Models/Application.phpindex bc4d48b1a6..9602d45ec9 100644--- a/app/Models/Application.php+++ b/app/Models/Application.php@@ -41,7 +41,7 @@ class Application extends BaseModelpublic function publishDirectory(): Attribute{return Attribute::make(- set: fn($value) => $value ? '/' . ltrim($value, '/') : null,+ set: fn ($value) => $value ? '/' . ltrim($value, '/') : null,);}@@ -71,14 +71,14 @@ class Application extends BaseModelpublic function baseDirectory(): Attribute{return Attribute::make(- set: fn($value) => '/' . ltrim($value, '/'),+ set: fn ($value) => '/' . ltrim($value, '/'),);}public function portsMappings(): Attribute{return Attribute::make(- set: fn($value) => $value === "" ? null : $value,+ set: fn ($value) => $value === "" ? null : $value,);}@@ -87,7 +87,7 @@ class Application extends BaseModelpublic function portsMappingsArray(): Attribute{return Attribute::make(- get: fn() => is_null($this->ports_mappings)+ get: fn () => is_null($this->ports_mappings)? []: explode(',', $this->ports_mappings),@@ -97,7 +97,7 @@ class Application extends BaseModelpublic function portsExposesArray(): Attribute{return Attribute::make(- get: fn() => is_null($this->ports_exposes)+ get: fn () => is_null($this->ports_exposes)? []: explode(',', $this->ports_exposes));diff --git a/app/Models/Environment.php b/app/Models/Environment.phpindex 458223ac94..470ad5e6ca 100644--- a/app/Models/Environment.php+++ b/app/Models/Environment.php@@ -45,7 +45,7 @@ class Environment extends Modelprotected function name(): Attribute{return Attribute::make(- set: fn(string $value) => strtolower($value),+ set: fn (string $value) => strtolower($value),);}}diff --git a/app/Models/EnvironmentVariable.php b/app/Models/EnvironmentVariable.phpindex 7bbc98014e..bb4a5ca474 100644--- a/app/Models/EnvironmentVariable.php+++ b/app/Models/EnvironmentVariable.php@@ -34,8 +34,8 @@ class EnvironmentVariable extends Modelprotected function value(): Attribute{return Attribute::make(- get: fn(string $value) => $this->get_environment_variables($value),- set: fn(string $value) => $this->set_environment_variables($value),+ get: fn (string $value) => $this->get_environment_variables($value),+ set: fn (string $value) => $this->set_environment_variables($value),);}@@ -67,7 +67,7 @@ class EnvironmentVariable extends Modelprotected function key(): Attribute{return Attribute::make(- set: fn(string $value) => Str::of($value)->trim(),+ set: fn (string $value) => Str::of($value)->trim(),);}}diff --git a/app/Models/LocalPersistentVolume.php b/app/Models/LocalPersistentVolume.phpindex 68d6fadedc..a35f31cdc5 100644--- a/app/Models/LocalPersistentVolume.php+++ b/app/Models/LocalPersistentVolume.php@@ -23,14 +23,14 @@ class LocalPersistentVolume extends Modelprotected function name(): Attribute{return Attribute::make(- set: fn(string $value) => Str::of($value)->trim()->value,+ set: fn (string $value) => Str::of($value)->trim()->value,);}protected function mountPath(): Attribute{return Attribute::make(- set: fn(string $value) => Str::of($value)->trim()->start('/')->value+ set: fn (string $value) => Str::of($value)->trim()->start('/')->value);}diff --git a/app/Models/StandalonePostgresql.php b/app/Models/StandalonePostgresql.phpindex ccfaae040d..6c00e302c8 100644--- a/app/Models/StandalonePostgresql.php+++ b/app/Models/StandalonePostgresql.php@@ -33,7 +33,7 @@ class StandalonePostgresql extends BaseModelpublic function portsMappings(): Attribute{return Attribute::make(- set: fn($value) => $value === "" ? null : $value,+ set: fn ($value) => $value === "" ? null : $value,);}@@ -42,7 +42,7 @@ class StandalonePostgresql extends BaseModelpublic function portsMappingsArray(): Attribute{return Attribute::make(- get: fn() => is_null($this->ports_mappings)+ get: fn () => is_null($this->ports_mappings)? []: explode(',', $this->ports_mappings),diff --git a/app/Notifications/Channels/EmailChannel.php b/app/Notifications/Channels/EmailChannel.phpindex 64051c931c..638939589d 100644--- a/app/Notifications/Channels/EmailChannel.php+++ b/app/Notifications/Channels/EmailChannel.php@@ -23,7 +23,7 @@ class EmailChannelMail::send([],[],- fn(Message $message) => $message+ fn (Message $message) => $message->from(data_get($notifiable, 'smtp_from_address'),data_get($notifiable, 'smtp_from_name'),diff --git a/app/Notifications/Channels/SendsEmail.php b/app/Notifications/Channels/SendsEmail.phpindex dabbb7a6d4..fc7528834a 100644--- a/app/Notifications/Channels/SendsEmail.php+++ b/app/Notifications/Channels/SendsEmail.php@@ -5,4 +5,4 @@ namespace App\Notifications\Channels;interface SendsEmail{public function getRecepients($notification);-}\ No newline at end of file+}diff --git a/app/Notifications/Channels/TransactionalEmailChannel.php b/app/Notifications/Channels/TransactionalEmailChannel.phpindex 3d5328f81e..bf968eb3f8 100644--- a/app/Notifications/Channels/TransactionalEmailChannel.php+++ b/app/Notifications/Channels/TransactionalEmailChannel.php@@ -25,7 +25,7 @@ class TransactionalEmailChannelMail::send([],[],- fn(Message $message) => $message+ fn (Message $message) => $message->from(data_get($settings, 'smtp_from_address'),data_get($settings, 'smtp_from_name')diff --git a/app/Notifications/TransactionalEmails/ResetPassword.php b/app/Notifications/TransactionalEmails/ResetPassword.phpindex 816c1a6717..e9baa16d11 100644--- a/app/Notifications/TransactionalEmails/ResetPassword.php+++ b/app/Notifications/TransactionalEmails/ResetPassword.php@@ -49,7 +49,6 @@ class ResetPassword extends Notificationreturn ['mail'];}throw new \Exception('SMTP is not enabled');-}public function toMail($notifiable)diff --git a/app/Providers/FortifyServiceProvider.php b/app/Providers/FortifyServiceProvider.phpindex b3e67c255a..7fe2468e1d 100644--- a/app/Providers/FortifyServiceProvider.php+++ b/app/Providers/FortifyServiceProvider.php@@ -23,7 +23,8 @@ class FortifyServiceProvider extends ServiceProvider*/public function register(): void{- $this->app->instance(RegisterResponse::class, new class implements RegisterResponse {+ $this->app->instance(RegisterResponse::class, new class implements RegisterResponse+ {public function toResponse($request){// First user (root) will be redirected to /settings instead of / on registration.diff --git a/app/View/Components/Forms/Button.php b/app/View/Components/Forms/Button.phpindex e4df04cf6b..2b67c69152 100644--- a/app/View/Components/Forms/Button.php+++ b/app/View/Components/Forms/Button.php@@ -17,8 +17,7 @@ class Button extends Componentpublic bool $noStyle = false,public string|null $modalId = null,public string $defaultClass = "btn btn-primary btn-sm font-normal text-white normal-case no-animation rounded border-none"- )- {+ ) {if ($this->noStyle) {$this->defaultClass = "";}diff --git a/app/View/Components/Forms/Checkbox.php b/app/View/Components/Forms/Checkbox.phpindex e730266a34..1f1d634f31 100644--- a/app/View/Components/Forms/Checkbox.php+++ b/app/View/Components/Forms/Checkbox.php@@ -20,8 +20,7 @@ class Checkbox extends Componentpublic bool $instantSave = false,public bool $disabled = false,public string $defaultClass = "toggle toggle-xs toggle-warning rounded disabled:bg-coolgray-200 disabled:opacity-50 placeholder:text-neutral-700"- )- {+ ) {//}diff --git a/app/View/Components/Forms/Input.php b/app/View/Components/Forms/Input.phpindex ab77e7491f..6d3346dcf4 100644--- a/app/View/Components/Forms/Input.php+++ b/app/View/Components/Forms/Input.php@@ -21,8 +21,7 @@ class Input extends Componentpublic string|null $helper = null,public bool $allowToPeak = true,public string $defaultClass = "input input-sm bg-coolgray-200 rounded text-white w-full disabled:bg-coolgray-200/50 disabled:border-none placeholder:text-coolgray-500 read-only:text-neutral-500 read-only:bg-coolgray-200/50"- )- {+ ) {}public function render(): View|Closure|stringdiff --git a/app/View/Components/Forms/Select.php b/app/View/Components/Forms/Select.phpindex f74cd31097..58f59a683f 100644--- a/app/View/Components/Forms/Select.php+++ b/app/View/Components/Forms/Select.php@@ -20,8 +20,7 @@ class Select extends Componentpublic string|null $helper = null,public bool $required = false,public string $defaultClass = "select select-sm w-full rounded text-white text-sm bg-coolgray-200 font-normal disabled:bg-coolgray-200/50 disabled:border-none"- )- {+ ) {//}diff --git a/app/View/Components/Forms/Textarea.php b/app/View/Components/Forms/Textarea.phpindex 61f4f757f0..c85c8b6f79 100644--- a/app/View/Components/Forms/Textarea.php+++ b/app/View/Components/Forms/Textarea.php@@ -25,8 +25,7 @@ class Textarea extends Componentpublic bool $readonly = false,public string|null $helper = null,public string $defaultClass = "textarea bg-coolgray-200 rounded text-white scrollbar disabled:bg-coolgray-200/50 disabled:border-none placeholder:text-coolgray-500 read-only:text-neutral-500 read-only:bg-coolgray-200/50"- )- {+ ) {//}diff --git a/app/View/Components/Modal.php b/app/View/Components/Modal.phpindex 0b7d66dae1..3ef89fb1de 100644--- a/app/View/Components/Modal.php+++ b/app/View/Components/Modal.php@@ -18,8 +18,7 @@ class Modal extends Componentpublic string|null $modalSubmit = null,public bool $yesOrNo = false,public string $action = 'delete'- )- {+ ) {//}diff --git a/bootstrap/helpers/docker.php b/bootstrap/helpers/docker.phpindex 21c72ebf6f..82f6e4521e 100644--- a/bootstrap/helpers/docker.php+++ b/bootstrap/helpers/docker.php@@ -8,8 +8,8 @@ function format_docker_command_output_to_json($rawOutput): Collection$outputLines = explode(PHP_EOL, $rawOutput);return collect($outputLines)- ->reject(fn($line) => empty($line))- ->map(fn($outputLine) => json_decode($outputLine, true, flags: JSON_THROW_ON_ERROR));+ ->reject(fn ($line) => empty($line))+ ->map(fn ($outputLine) => json_decode($outputLine, true, flags: JSON_THROW_ON_ERROR));}function format_docker_labels_to_json($rawOutput): Collection@@ -17,7 +17,7 @@ function format_docker_labels_to_json($rawOutput): Collection$outputLines = explode(PHP_EOL, $rawOutput);return collect($outputLines)- ->reject(fn($line) => empty($line))+ ->reject(fn ($line) => empty($line))->map(function ($outputLine) {$outputArray = explode(',', $outputLine);return collect($outputArray)diff --git a/bootstrap/helpers/proxy.php b/bootstrap/helpers/proxy.phpindex 831d5fc0b2..77ea397ae4 100644--- a/bootstrap/helpers/proxy.php+++ b/bootstrap/helpers/proxy.php@@ -104,52 +104,52 @@ function setup_default_redirect_404(string|null $redirect_url, Server $server)} else {$traefik_dynamic_conf = ['http' =>+ [+ 'routers' =>[- 'routers' =>- [- 'catchall' =>- [- 'entryPoints' => [- 0 => 'http',- 1 => 'https',- ],- 'service' => 'noop',- 'rule' => "HostRegexp(`{catchall:.*}`)",- 'priority' => 1,- 'middlewares' => [- 0 => 'redirect-regexp@file',- ],- ],+ 'catchall' =>+ [+ 'entryPoints' => [+ 0 => 'http',+ 1 => 'https',],- 'services' =>+ 'service' => 'noop',+ 'rule' => "HostRegexp(`{catchall:.*}`)",+ 'priority' => 1,+ 'middlewares' => [+ 0 => 'redirect-regexp@file',+ ],+ ],+ ],+ 'services' =>+ [+ 'noop' =>+ [+ 'loadBalancer' =>[- 'noop' =>+ 'servers' =>+ [+ 0 =>[- 'loadBalancer' =>- [- 'servers' =>- [- 0 =>- [- 'url' => '',- ],- ],- ],+ 'url' => '',],+ ],],- 'middlewares' =>+ ],+ ],+ 'middlewares' =>+ [+ 'redirect-regexp' =>+ [+ 'redirectRegex' =>[- 'redirect-regexp' =>- [- 'redirectRegex' =>- [- 'regex' => '(.*)',- 'replacement' => $redirect_url,- 'permanent' => false,- ],- ],+ 'regex' => '(.*)',+ 'replacement' => $redirect_url,+ 'permanent' => false,],+ ],],+ ],];$yaml = Yaml::dump($traefik_dynamic_conf, 12, 2);$yaml =diff --git a/bootstrap/helpers/remoteProcess.php b/bootstrap/helpers/remoteProcess.phpindex 2fe78960bf..3f8f567d86 100644--- a/bootstrap/helpers/remoteProcess.php+++ b/bootstrap/helpers/remoteProcess.php@@ -27,8 +27,7 @@ function remote_process(?string $type_uuid = null,?Model $model = null,bool $ignore_errors = false,-): Activity-{+): Activity {$command_string = implode("\n", $command);if (auth()->user()) {@@ -141,10 +140,10 @@ function decode_remote_command_output(?ApplicationDeploymentQueue $application_d}$formatted = collect($decoded);if (!$is_debug_enabled) {- $formatted = $formatted->filter(fn($i) => $i['hidden'] === false ?? false);+ $formatted = $formatted->filter(fn ($i) => $i['hidden'] === false ?? false);}$formatted = $formatted- ->sortBy(fn($i) => $i['order'])+ ->sortBy(fn ($i) => $i['order'])->map(function ($i) {$i['timestamp'] = Carbon::parse($i['timestamp'])->format('Y-M-d H:i:s.u');return $i;diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.phpindex 5dbae95b23..e6a8eed91d 100644--- a/bootstrap/helpers/shared.php+++ b/bootstrap/helpers/shared.php@@ -178,5 +178,3 @@ function validate_cron_expression($expression_to_validate): bool}return $isValid;}--diff --git a/database/factories/UserFactory.php b/database/factories/UserFactory.phpindex d874cd9dca..31ddf87205 100644--- a/database/factories/UserFactory.php+++ b/database/factories/UserFactory.php@@ -30,7 +30,7 @@ class UserFactory extends Factory*/public function unverified(): static{- return $this->state(fn(array $attributes) => [+ return $this->state(fn (array $attributes) => ['email_verified_at' => null,]);}diff --git a/database/migrations/2014_10_12_000000_create_users_table.php b/database/migrations/2014_10_12_000000_create_users_table.phpindex 2b909d2e23..321128a8f4 100644--- a/database/migrations/2014_10_12_000000_create_users_table.php+++ b/database/migrations/2014_10_12_000000_create_users_table.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2014_10_12_100000_create_password_reset_tokens_table.php b/database/migrations/2014_10_12_100000_create_password_reset_tokens_table.phpindex 1bc0eeeae2..81a7229b08 100644--- a/database/migrations/2014_10_12_100000_create_password_reset_tokens_table.php+++ b/database/migrations/2014_10_12_100000_create_password_reset_tokens_table.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2014_10_12_200000_add_two_factor_columns_to_users_table.php b/database/migrations/2014_10_12_200000_add_two_factor_columns_to_users_table.phpindex eb46a82cc7..b490e24f5a 100644--- a/database/migrations/2014_10_12_200000_add_two_factor_columns_to_users_table.php+++ b/database/migrations/2014_10_12_200000_add_two_factor_columns_to_users_table.php@@ -5,7 +5,8 @@ use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;use Laravel\Fortify\Fortify;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php b/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.phpindex 5f7e6b53df..954f7518f5 100644--- a/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php+++ b/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_03_20_112809_create_sessions_table.php b/database/migrations/2023_03_20_112809_create_sessions_table.phpindex f2251eef9e..f60625bb57 100644--- a/database/migrations/2023_03_20_112809_create_sessions_table.php+++ b/database/migrations/2023_03_20_112809_create_sessions_table.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_03_20_112811_create_teams_table.php b/database/migrations/2023_03_20_112811_create_teams_table.phpindex 5c7677c110..0f41c5e95d 100644--- a/database/migrations/2023_03_20_112811_create_teams_table.php+++ b/database/migrations/2023_03_20_112811_create_teams_table.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_03_20_112812_create_team_user_table.php b/database/migrations/2023_03_20_112812_create_team_user_table.phpindex 2ee7fd2e00..9eeeb4b31b 100644--- a/database/migrations/2023_03_20_112812_create_team_user_table.php+++ b/database/migrations/2023_03_20_112812_create_team_user_table.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_03_20_112813_create_team_invitations_table.php b/database/migrations/2023_03_20_112813_create_team_invitations_table.phpindex f0d383cc03..9bce2be922 100644--- a/database/migrations/2023_03_20_112813_create_team_invitations_table.php+++ b/database/migrations/2023_03_20_112813_create_team_invitations_table.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_03_20_112814_create_instance_settings_table.php b/database/migrations/2023_03_20_112814_create_instance_settings_table.phpindex 9aaad9386f..51b156ccbf 100644--- a/database/migrations/2023_03_20_112814_create_instance_settings_table.php+++ b/database/migrations/2023_03_20_112814_create_instance_settings_table.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_03_24_140711_create_servers_table.php b/database/migrations/2023_03_24_140711_create_servers_table.phpindex bd2f89e25c..0f3bf7419c 100644--- a/database/migrations/2023_03_24_140711_create_servers_table.php+++ b/database/migrations/2023_03_24_140711_create_servers_table.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_03_24_140712_create_server_settings_table.php b/database/migrations/2023_03_24_140712_create_server_settings_table.phpindex 0ac47b9149..a3b1c8b44e 100644--- a/database/migrations/2023_03_24_140712_create_server_settings_table.php+++ b/database/migrations/2023_03_24_140712_create_server_settings_table.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_03_24_140853_create_private_keys_table.php b/database/migrations/2023_03_24_140853_create_private_keys_table.phpindex b162e635e6..21acf7d058 100644--- a/database/migrations/2023_03_24_140853_create_private_keys_table.php+++ b/database/migrations/2023_03_24_140853_create_private_keys_table.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_03_27_075351_create_projects_table.php b/database/migrations/2023_03_27_075351_create_projects_table.phpindex dd02301906..432496268e 100644--- a/database/migrations/2023_03_27_075351_create_projects_table.php+++ b/database/migrations/2023_03_27_075351_create_projects_table.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_03_27_075443_create_project_settings_table.php b/database/migrations/2023_03_27_075443_create_project_settings_table.phpindex 83f4290b2e..35f691ea83 100644--- a/database/migrations/2023_03_27_075443_create_project_settings_table.php+++ b/database/migrations/2023_03_27_075443_create_project_settings_table.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_03_27_075444_create_environments_table.php b/database/migrations/2023_03_27_075444_create_environments_table.phpindex 5a329ae1e2..f9514dcce3 100644--- a/database/migrations/2023_03_27_075444_create_environments_table.php+++ b/database/migrations/2023_03_27_075444_create_environments_table.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_03_27_081716_create_applications_table.php b/database/migrations/2023_03_27_081716_create_applications_table.phpindex e5b01f2022..ec91f0737a 100644--- a/database/migrations/2023_03_27_081716_create_applications_table.php+++ b/database/migrations/2023_03_27_081716_create_applications_table.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_03_27_081717_create_application_settings_table.php b/database/migrations/2023_03_27_081717_create_application_settings_table.phpindex 02da3a9527..e13f7f3666 100644--- a/database/migrations/2023_03_27_081717_create_application_settings_table.php+++ b/database/migrations/2023_03_27_081717_create_application_settings_table.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_03_27_081718_create_application_previews_table.php b/database/migrations/2023_03_27_081718_create_application_previews_table.phpindex b0e379303b..66211eee46 100644--- a/database/migrations/2023_03_27_081718_create_application_previews_table.php+++ b/database/migrations/2023_03_27_081718_create_application_previews_table.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_03_27_083621_create_services_table.php b/database/migrations/2023_03_27_083621_create_services_table.phpindex a5ecff45ea..12bb77b1ba 100644--- a/database/migrations/2023_03_27_083621_create_services_table.php+++ b/database/migrations/2023_03_27_083621_create_services_table.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_03_27_085020_create_standalone_dockers_table.php b/database/migrations/2023_03_27_085020_create_standalone_dockers_table.phpindex 6f8630d26b..f7f4300994 100644--- a/database/migrations/2023_03_27_085020_create_standalone_dockers_table.php+++ b/database/migrations/2023_03_27_085020_create_standalone_dockers_table.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_03_27_085022_create_swarm_dockers_table.php b/database/migrations/2023_03_27_085022_create_swarm_dockers_table.phpindex 653f7857e4..ea85640baa 100644--- a/database/migrations/2023_03_27_085022_create_swarm_dockers_table.php+++ b/database/migrations/2023_03_27_085022_create_swarm_dockers_table.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_03_28_062150_create_kubernetes_table.php b/database/migrations/2023_03_28_062150_create_kubernetes_table.phpindex 454a4ad184..365380e1fc 100644--- a/database/migrations/2023_03_28_062150_create_kubernetes_table.php+++ b/database/migrations/2023_03_28_062150_create_kubernetes_table.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_03_28_083723_create_github_apps_table.php b/database/migrations/2023_03_28_083723_create_github_apps_table.phpindex 71b914d090..27f1939125 100644--- a/database/migrations/2023_03_28_083723_create_github_apps_table.php+++ b/database/migrations/2023_03_28_083723_create_github_apps_table.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_03_28_083726_create_gitlab_apps_table.php b/database/migrations/2023_03_28_083726_create_gitlab_apps_table.phpindex 59a192e2f8..24db88d863 100644--- a/database/migrations/2023_03_28_083726_create_gitlab_apps_table.php+++ b/database/migrations/2023_03_28_083726_create_gitlab_apps_table.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_04_03_111012_create_local_persistent_volumes_table.php b/database/migrations/2023_04_03_111012_create_local_persistent_volumes_table.phpindex 6466a0e92a..c3f2a976a9 100644--- a/database/migrations/2023_04_03_111012_create_local_persistent_volumes_table.php+++ b/database/migrations/2023_04_03_111012_create_local_persistent_volumes_table.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_05_04_194548_create_environment_variables_table.php b/database/migrations/2023_05_04_194548_create_environment_variables_table.phpindex e0ebb77a06..4a03ead55a 100644--- a/database/migrations/2023_05_04_194548_create_environment_variables_table.php+++ b/database/migrations/2023_05_04_194548_create_environment_variables_table.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_05_17_104039_create_failed_jobs_table.php b/database/migrations/2023_05_17_104039_create_failed_jobs_table.phpindex 51aaa6f9fc..249da8171a 100644--- a/database/migrations/2023_05_17_104039_create_failed_jobs_table.php+++ b/database/migrations/2023_05_17_104039_create_failed_jobs_table.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_05_24_083426_create_application_deployment_queues_table.php b/database/migrations/2023_05_24_083426_create_application_deployment_queues_table.phpindex ed502f89f8..9573b9735e 100644--- a/database/migrations/2023_05_24_083426_create_application_deployment_queues_table.php+++ b/database/migrations/2023_05_24_083426_create_application_deployment_queues_table.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_06_22_131459_move_wildcard_to_server.php b/database/migrations/2023_06_22_131459_move_wildcard_to_server.phpindex 93f559ea28..cd258fbea1 100644--- a/database/migrations/2023_06_22_131459_move_wildcard_to_server.php+++ b/database/migrations/2023_06_22_131459_move_wildcard_to_server.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_06_23_084605_remove_wildcard_domain_from_instancesettings.php b/database/migrations/2023_06_23_084605_remove_wildcard_domain_from_instancesettings.phpindex 67e8f6f74d..a4260ce1d2 100644--- a/database/migrations/2023_06_23_084605_remove_wildcard_domain_from_instancesettings.php+++ b/database/migrations/2023_06_23_084605_remove_wildcard_domain_from_instancesettings.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_06_23_110548_next_channel_updates.php b/database/migrations/2023_06_23_110548_next_channel_updates.phpindex 1c2f705b9c..83c4dacf3d 100644--- a/database/migrations/2023_06_23_110548_next_channel_updates.php+++ b/database/migrations/2023_06_23_110548_next_channel_updates.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_06_23_114131_change_env_var_value_length.php b/database/migrations/2023_06_23_114131_change_env_var_value_length.phpindex 2b0a6e1594..ca8bd1e0ce 100644--- a/database/migrations/2023_06_23_114131_change_env_var_value_length.php+++ b/database/migrations/2023_06_23_114131_change_env_var_value_length.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_06_23_114132_remove_default_redirect_from_instance_settings.php b/database/migrations/2023_06_23_114132_remove_default_redirect_from_instance_settings.phpindex 66d02e642c..9c14b7c398 100644--- a/database/migrations/2023_06_23_114132_remove_default_redirect_from_instance_settings.php+++ b/database/migrations/2023_06_23_114132_remove_default_redirect_from_instance_settings.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_06_23_114133_use_application_deployment_queues_as_activity.php b/database/migrations/2023_06_23_114133_use_application_deployment_queues_as_activity.phpindex 440eca662d..36623ee7bc 100644--- a/database/migrations/2023_06_23_114133_use_application_deployment_queues_as_activity.php+++ b/database/migrations/2023_06_23_114133_use_application_deployment_queues_as_activity.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_06_23_114134_add_disk_usage_percentage_to_servers.php b/database/migrations/2023_06_23_114134_add_disk_usage_percentage_to_servers.phpindex 09e9a60931..79846bb0a3 100644--- a/database/migrations/2023_06_23_114134_add_disk_usage_percentage_to_servers.php+++ b/database/migrations/2023_06_23_114134_add_disk_usage_percentage_to_servers.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_07_13_115117_create_subscriptions_table.php b/database/migrations/2023_07_13_115117_create_subscriptions_table.phpindex 5745c29e2b..e24e56555e 100644--- a/database/migrations/2023_07_13_115117_create_subscriptions_table.php+++ b/database/migrations/2023_07_13_115117_create_subscriptions_table.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_07_13_120719_create_webhooks_table.php b/database/migrations/2023_07_13_120719_create_webhooks_table.phpindex f53d280c1b..9376a10c92 100644--- a/database/migrations/2023_07_13_120719_create_webhooks_table.php+++ b/database/migrations/2023_07_13_120719_create_webhooks_table.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_07_13_120721_add_license_to_instance_settings.php b/database/migrations/2023_07_13_120721_add_license_to_instance_settings.phpindex 6ecd5d971f..c32cd0f9a5 100644--- a/database/migrations/2023_07_13_120721_add_license_to_instance_settings.php+++ b/database/migrations/2023_07_13_120721_add_license_to_instance_settings.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_07_27_182013_smtp_discord_schemaless_to_normal.php b/database/migrations/2023_07_27_182013_smtp_discord_schemaless_to_normal.phpindex 207d5e081c..8bb8d78247 100644--- a/database/migrations/2023_07_27_182013_smtp_discord_schemaless_to_normal.php+++ b/database/migrations/2023_07_27_182013_smtp_discord_schemaless_to_normal.php@@ -6,7 +6,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_08_06_142951_add_description_field_to_applications_table.php b/database/migrations/2023_08_06_142951_add_description_field_to_applications_table.phpindex 2bd1c428c5..5be2f2959c 100644--- a/database/migrations/2023_08_06_142951_add_description_field_to_applications_table.php+++ b/database/migrations/2023_08_06_142951_add_description_field_to_applications_table.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_08_06_142952_remove_foreignId_environment_variables.php b/database/migrations/2023_08_06_142952_remove_foreignId_environment_variables.phpindex 2adf41b907..d24dbb4464 100644--- a/database/migrations/2023_08_06_142952_remove_foreignId_environment_variables.php+++ b/database/migrations/2023_08_06_142952_remove_foreignId_environment_variables.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_08_06_142954_add_readonly_localpersistentvolumes.php b/database/migrations/2023_08_06_142954_add_readonly_localpersistentvolumes.phpindex 1a693eee90..f0bce760d7 100644--- a/database/migrations/2023_08_06_142954_add_readonly_localpersistentvolumes.php+++ b/database/migrations/2023_08_06_142954_add_readonly_localpersistentvolumes.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_08_07_073651_create_s3_storages_table.php b/database/migrations/2023_08_07_073651_create_s3_storages_table.phpindex 0a7415afb3..0eded30242 100644--- a/database/migrations/2023_08_07_073651_create_s3_storages_table.php+++ b/database/migrations/2023_08_07_073651_create_s3_storages_table.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_08_07_142950_create_standalone_postgresqls_table.php b/database/migrations/2023_08_07_142950_create_standalone_postgresqls_table.phpindex 00f367de08..ddaf19a7dc 100644--- a/database/migrations/2023_08_07_142950_create_standalone_postgresqls_table.php+++ b/database/migrations/2023_08_07_142950_create_standalone_postgresqls_table.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{/*** Run the migrations.*/diff --git a/database/migrations/2023_08_08_150103_create_scheduled_database_backups_table.php b/database/migrations/2023_08_08_150103_create_scheduled_database_backups_table.phpindex 035f8a1748..cc6726f362 100644--- a/database/migrations/2023_08_08_150103_create_scheduled_database_backups_table.php+++ b/database/migrations/2023_08_08_150103_create_scheduled_database_backups_table.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{public function up(): void{Schema::create('scheduled_database_backups', function (Blueprint $table) {diff --git a/database/migrations/2023_08_10_113306_create_scheduled_database_backup_executions_table.php b/database/migrations/2023_08_10_113306_create_scheduled_database_backup_executions_table.phpindex 96d1f3d477..a7ecc37963 100644--- a/database/migrations/2023_08_10_113306_create_scheduled_database_backup_executions_table.php+++ b/database/migrations/2023_08_10_113306_create_scheduled_database_backup_executions_table.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{public function up(): void{Schema::create('scheduled_database_backup_executions', function (Blueprint $table) {diff --git a/database/migrations/2023_08_10_201311_add_backup_notifications_to_teams.php b/database/migrations/2023_08_10_201311_add_backup_notifications_to_teams.phpindex e795631829..128aa5b250 100644--- a/database/migrations/2023_08_10_201311_add_backup_notifications_to_teams.php+++ b/database/migrations/2023_08_10_201311_add_backup_notifications_to_teams.php@@ -4,7 +4,8 @@ use Illuminate\Database\Migrations\Migration;use Illuminate\Database\Schema\Blueprint;use Illuminate\Support\Facades\Schema;-return new class extends Migration {+return new class extends Migration+{public function up(): void{Schema::table('teams', function (Blueprint $table) {diff --git a/database/seeders/EnvironmentVariableSeeder.php b/database/seeders/EnvironmentVariableSeeder.phpindex a6e04a33b9..b09ff705ef 100644--- a/database/seeders/EnvironmentVariableSeeder.php+++ b/database/seeders/EnvironmentVariableSeeder.php@@ -11,11 +11,11 @@ class EnvironmentVariableSeeder extends Seeder*/public function run(): void{-// EnvironmentVariable::create([-// 'key' => 'NODE_ENV',-// 'value' => 'production',-// 'is_build_time' => true,-// 'application_id' => 1,-// ]);+ // EnvironmentVariable::create([+ // 'key' => 'NODE_ENV',+ // 'value' => 'production',+ // 'is_build_time' => true,+ // 'application_id' => 1,+ // ]);}}diff --git a/database/seeders/InstanceSettingsSeeder.php b/database/seeders/InstanceSettingsSeeder.phpindex d18c8ccbfc..a00d8715c0 100644--- a/database/seeders/InstanceSettingsSeeder.php+++ b/database/seeders/InstanceSettingsSeeder.php@@ -41,4 +41,4 @@ class InstanceSettingsSeeder extends Seederecho "Error: {$e->getMessage()}\n";}}-}\ No newline at end of file+}diff --git a/database/seeders/ProjectSettingSeeder.php b/database/seeders/ProjectSettingSeeder.phpindex d0a837335a..2a8cdfdb45 100644--- a/database/seeders/ProjectSettingSeeder.php+++ b/database/seeders/ProjectSettingSeeder.php@@ -8,8 +8,8 @@ class ProjectSettingSeeder extends Seeder{public function run(): void{-// $first_project = Project::find(1);+ // $first_project = Project::find(1);// $first_project->settings->wildcard_domain = 'wildcard.example.com';-// $first_project->settings->save();+ // $first_project->settings->save();}}diff --git a/docker/dev-ssu/nginx.conf b/docker/dev-ssu/nginx.confindex 60e1f966d4..f26dc30495 100644--- a/docker/dev-ssu/nginx.conf+++ b/docker/dev-ssu/nginx.conf@@ -1,4 +1,4 @@# Custom nginx configuration# Disable access logs-access_log off;\ No newline at end of file+access_log off;diff --git a/docker/prod-ssu/nginx.conf b/docker/prod-ssu/nginx.confindex 60e1f966d4..f26dc30495 100644--- a/docker/prod-ssu/nginx.conf+++ b/docker/prod-ssu/nginx.conf@@ -1,4 +1,4 @@# Custom nginx configuration# Disable access logs-access_log off;\ No newline at end of file+access_log off;diff --git a/resources/views/emails/application-deployment-failed.php b/resources/views/emails/application-deployment-failed.phpindex 5f7ba23c25..e201d9e11a 100644--- a/resources/views/emails/application-deployment-failed.php+++ b/resources/views/emails/application-deployment-failed.php@@ -1,8 +1,7 @@@if ($pull_request_id !== 0)-Pull Request #{{ $pull_request_id }} of {{ $name }} (<a target="_blank"- href="{{ $fqdn }}">{{ $fqdn }}</a>) deployment failed:+Pull Request #{{ $pull_request_id }} of {{ $name }} (<a target="_blank" href="{{ $fqdn }}">{{ $fqdn }}</a>) deployment failed:@elseDeployment failed of {{ $name }} (<a target="_blank" href="{{ $fqdn }}">{{ $fqdn }}</a>):@endif-<a target="_blank" href="{{ $deployment_url }}">View Deployment Logs</a><br><br>+<a target="_blank" href="{{ $deployment_url }}">View Deployment Logs</a><br><br>\ No newline at end of filediff --git a/resources/views/emails/application-deployment-success.php b/resources/views/emails/application-deployment-success.phpindex 3b622f1dbc..2fc84995e9 100644--- a/resources/views/emails/application-deployment-success.php+++ b/resources/views/emails/application-deployment-success.php@@ -1,8 +1,7 @@@if ($pull_request_id === 0)A new version of <a target="_blank" href="{{ $fqdn }}">{{ $fqdn }}</a> is available:@else-Pull request #{{ $pull_request_id }} of {{ $name }} deployed successfully: <a target="_blank"- href="{{ $fqdn }}">Application Link</a> |+Pull request #{{ $pull_request_id }} of {{ $name }} deployed successfully: <a target="_blank" href="{{ $fqdn }}">Application Link</a> |@endif<a target="_blank" href="{{ $deployment_url }}">View- Deployment Logs</a><br><br>+ Deployment Logs</a><br><br>\ No newline at end of filediff --git a/resources/views/livewire/project/database/backup-edit.blade.php b/resources/views/livewire/project/database/backup-edit.blade.phpindex 8644b026bc..f7f7afa8ea 100644--- a/resources/views/livewire/project/database/backup-edit.blade.php+++ b/resources/views/livewire/project/database/backup-edit.blade.php@@ -4,6 +4,7 @@<x-forms.button type="submit">Save</x-forms.button>+ <livewire:project.database.backup-now :backup="$backup" />@if ($backup->database_id !== 0)<x-forms.button isError wire:click="delete">Delete</x-forms.button>@endifdiff --git a/resources/views/livewire/project/database/backup-execution.blade.php b/resources/views/livewire/project/database/backup-execution.blade.phpindex 60bda3d877..cf306858d8 100644--- a/resources/views/livewire/project/database/backup-execution.blade.php+++ b/resources/views/livewire/project/database/backup-execution.blade.php@@ -1,5 +1,6 @@<div class="flex gap-2"><div class="flex-1"></div>+{{-- @if (data_get($execution, 'status') !== 'failed') --}}{{-- <x-forms.button class="bg-coollabs-100 hover:bg-coollabs" wire:click="download">Download</x-forms.button> --}}{{-- @endif --}}diff --git a/resources/views/livewire/project/database/backup-now.blade.php b/resources/views/livewire/project/database/backup-now.blade.phpnew file mode 100644index 0000000000..9fa698c31a--- /dev/null+++ b/resources/views/livewire/project/database/backup-now.blade.php@@ -0,0 +1 @@+<x-forms.button wire:click='backup_now'>Backup Now</x-forms.button>diff --git a/resources/views/livewire/settings/backup.blade.php b/resources/views/livewire/settings/backup.blade.phpindex 88febe521e..f2bb18fbee 100644--- a/resources/views/livewire/settings/backup.blade.php+++ b/resources/views/livewire/settings/backup.blade.php@@ -6,7 +6,6 @@<x-forms.button type="submit" wire:click="submit">Save</x-forms.button>- <x-forms.button wire:click="backup_now">Backup Now</x-forms.button>@endif</div><div class="pb-4">Backup your Coolify instance settings</div>@@ -30,5 +29,9 @@<x-forms.button wire:click="add_coolify_database">Add Database</x-forms.button>@endif</div>+ <div class="py-4">+ <h2 class="pb-4">Executions</h2>+ <livewire:project.database.backup-executions :backup="$backup" :executions="$executions" />+ </div></div></div>diff --git a/resources/views/settings/configuration.blade.php b/resources/views/settings/configuration.blade.phpindex afd23a488a..86e24480f4 100644--- a/resources/views/settings/configuration.blade.php+++ b/resources/views/settings/configuration.blade.php@@ -14,7 +14,7 @@<livewire:settings.configuration :settings="$settings" /></div><div x-cloak x-show="activeTab === 'backup'" class="h-full">- <livewire:settings.backup :settings="$settings" :database="$database" :backup="$backup" :s3s="$s3s" />+ <livewire:settings.backup :settings="$settings" :database="$database" :s3s="$s3s" /></div><div x-cloak x-show="activeTab === 'smtp'" class="h-full"><livewire:settings.email :settings="$settings" />diff --git a/routes/web.php b/routes/web.phpindex 362342dabc..7e2ad9e34d 100644--- a/routes/web.php+++ b/routes/web.php@@ -68,23 +68,23 @@ Route::middleware(['auth'])->group(function () {});Route::middleware(['auth'])->group(function () {- Route::get('/servers', fn() => view('server.all', [+ Route::get('/servers', fn () => view('server.all', ['servers' => Server::ownedByCurrentTeam()->get()]))->name('server.all');- Route::get('/server/new', fn() => view('server.create', [+ Route::get('/server/new', fn () => view('server.create', ['private_keys' => PrivateKey::ownedByCurrentTeam()->get(),]))->name('server.create');- Route::get('/server/{server_uuid}', fn() => view('server.show', [+ Route::get('/server/{server_uuid}', fn () => view('server.show', ['server' => Server::ownedByCurrentTeam(['name', 'description', 'ip', 'port', 'user', 'proxy'])->whereUuid(request()->server_uuid)->firstOrFail(),]))->name('server.show');- Route::get('/server/{server_uuid}/proxy', fn() => view('server.proxy', [+ Route::get('/server/{server_uuid}/proxy', fn () => view('server.proxy', ['server' => Server::ownedByCurrentTeam(['name', 'proxy'])->whereUuid(request()->server_uuid)->firstOrFail(),]))->name('server.proxy');- Route::get('/server/{server_uuid}/private-key', fn() => view('server.private-key', [+ Route::get('/server/{server_uuid}/private-key', fn () => view('server.private-key', ['server' => Server::ownedByCurrentTeam()->whereUuid(request()->server_uuid)->firstOrFail(),'privateKeys' => PrivateKey::ownedByCurrentTeam()->get(),]))->name('server.private-key');- Route::get('/server/{server_uuid}/destinations', fn() => view('server.destinations', [+ Route::get('/server/{server_uuid}/destinations', fn () => view('server.destinations', ['server' => Server::ownedByCurrentTeam(['name', 'proxy'])->whereUuid(request()->server_uuid)->firstOrFail()]))->name('server.destinations');});@@ -95,32 +95,32 @@ Route::middleware(['auth'])->group(function () {Route::get('/subscription', [Controller::class, 'subscription'])->name('subscription');Route::get('/settings', [Controller::class, 'settings'])->name('settings.configuration');Route::get('/settings/license', [Controller::class, 'license'])->name('settings.license');- Route::get('/profile', fn() => view('profile', ['request' => request()]))->name('profile');+ Route::get('/profile', fn () => view('profile', ['request' => request()]))->name('profile');Route::get('/team', [Controller::class, 'team'])->name('team.show');- Route::get('/team/new', fn() => view('team.create'))->name('team.create');- Route::get('/team/notifications', fn() => view('team.notifications'))->name('team.notifications');+ Route::get('/team/new', fn () => view('team.create'))->name('team.create');+ Route::get('/team/notifications', fn () => view('team.notifications'))->name('team.notifications');Route::get('/team/storages', [Controller::class, 'storages'])->name('team.storages.all');- Route::get('/team/storages/new', fn() => view('team.storages.create'))->name('team.storages.new');+ Route::get('/team/storages/new', fn () => view('team.storages.create'))->name('team.storages.new');Route::get('/team/storages/{storage_uuid}', [Controller::class, 'storages_show'])->name('team.storages.show');Route::get('/team/members', [Controller::class, 'members'])->name('team.members');- Route::get('/command-center', fn() => view('command-center', ['servers' => Server::isReachable()->get()]))->name('command-center');+ Route::get('/command-center', fn () => view('command-center', ['servers' => Server::isReachable()->get()]))->name('command-center');Route::get('/invitations/{uuid}', [Controller::class, 'acceptInvitation'])->name('team.invitation.accept');Route::get('/invitations/{uuid}/revoke', [Controller::class, 'revokeInvitation'])->name('team.invitation.revoke');});Route::middleware(['auth'])->group(function () {- Route::get('/private-keys', fn() => view('private-key.all', [+ Route::get('/private-keys', fn () => view('private-key.all', ['privateKeys' => PrivateKey::ownedByCurrentTeam(['name', 'uuid', 'is_git_related'])->where('is_git_related', false)->get()]))->name('private-key.all');- Route::get('/private-key/new', fn() => view('private-key.new'))->name('private-key.new');- Route::get('/private-key/{private_key_uuid}', fn() => view('private-key.show', [+ Route::get('/private-key/new', fn () => view('private-key.new'))->name('private-key.new');+ Route::get('/private-key/{private_key_uuid}', fn () => view('private-key.show', ['private_key' => PrivateKey::ownedByCurrentTeam(['name', 'description', 'private_key', 'is_git_related'])->whereUuid(request()->private_key_uuid)->firstOrFail()]))->name('private-key.show');});Route::middleware(['auth'])->group(function () {- Route::get('/source/new', fn() => view('source.new'))->name('source.new');+ Route::get('/source/new', fn () => view('source.new'))->name('source.new');Route::get('/sources', function () {$sources = auth()->user()->currentTeam()->sources();return view('source.all', [diff --git a/tests/DuskTestCase.php b/tests/DuskTestCase.phpindex ca70aabb95..04827e5e92 100644--- a/tests/DuskTestCase.php+++ b/tests/DuskTestCase.php@@ -41,7 +41,8 @@ abstract class DuskTestCase extends BaseTestCasereturn RemoteWebDriver::create($_ENV['DUSK_DRIVER_URL'] ?? 'http://localhost:9515',DesiredCapabilities::chrome()->setCapability(- ChromeOptions::CAPABILITY, $options+ ChromeOptions::CAPABILITY,+ $options));}diff --git a/tests/Feature/DockerCommandsTest.php b/tests/Feature/DockerCommandsTest.phpindex 2498a3af52..77e9d77e13 100644--- a/tests/Feature/DockerCommandsTest.php+++ b/tests/Feature/DockerCommandsTest.php@@ -56,7 +56,7 @@ it('starts a docker container correctly', function () {// Stop testing containers$activity = remote_process(["docker ps --filter='name={$coolifyNamePrefix}*' -aq && " .- "docker rm -f $(docker ps --filter='name={$coolifyNamePrefix}*' -aq)"+ "docker rm -f $(docker ps --filter='name={$coolifyNamePrefix}*' -aq)"], $host);expect($activity->getExtraProperty('exitCode'))->toBe(0);});diff --git a/tests/Pest.php b/tests/Pest.phpindex d3c836f732..50ab1e4331 100644--- a/tests/Pest.php+++ b/tests/Pest.php@@ -13,7 +13,7 @@uses(Tests\TestCase::class,-// Illuminate\Foundation\Testing\RefreshDatabase::class,+ // Illuminate\Foundation\Testing\RefreshDatabase::class,)->in('Feature');/*