empty content on editing file

This commit is contained in:
Saeed Vaziry 2024-03-29 00:42:36 +01:00
parent f1efb9a6c8
commit f089779045
5 changed files with 6 additions and 6 deletions

View File

@ -12,5 +12,5 @@ MAIL_PORT=
MAIL_USERNAME=null MAIL_USERNAME=null
MAIL_PASSWORD=null MAIL_PASSWORD=null
MAIL_ENCRYPTION=null MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=null MAIL_FROM_ADDRESS="noreply@${APP_NAME}"
MAIL_FROM_NAME="${APP_NAME}" MAIL_FROM_NAME="${APP_NAME}"

View File

@ -12,5 +12,5 @@ MAIL_PORT=
MAIL_USERNAME=null MAIL_USERNAME=null
MAIL_PASSWORD=null MAIL_PASSWORD=null
MAIL_ENCRYPTION=null MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=null MAIL_FROM_ADDRESS="noreply@${APP_NAME}"
MAIL_FROM_NAME="${APP_NAME}" MAIL_FROM_NAME="${APP_NAME}"

View File

@ -13,5 +13,5 @@ MAIL_PORT=
MAIL_USERNAME=null MAIL_USERNAME=null
MAIL_PASSWORD=null MAIL_PASSWORD=null
MAIL_ENCRYPTION=null MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=null MAIL_FROM_ADDRESS="noreply@${APP_NAME}"
MAIL_FROM_NAME="${APP_NAME}" MAIL_FROM_NAME="${APP_NAME}"

View File

@ -38,7 +38,7 @@ public function boot(): void
return new Toast; return new Toast;
}); });
if (str(config('app.url'))->startsWith('https://')) { if (str(request()->url())->startsWith('https://')) {
URL::forceScheme('https'); URL::forceScheme('https');
} }
} }

View File

@ -98,12 +98,12 @@ public function reboot(): void
); );
} }
public function editFile(string $path, string $content): void public function editFile(string $path, ?string $content = null): void
{ {
$this->server->ssh()->exec( $this->server->ssh()->exec(
$this->getScript('edit-file.sh', [ $this->getScript('edit-file.sh', [
'path' => $path, 'path' => $path,
'content' => $content, 'content' => $content ?? '',
]), ]),
); );
} }