added a sparkbooth section to gallery form, connection details reside there now.

This commit is contained in:
2025-12-07 19:25:01 +01:00
parent b0d835d142
commit ca784fe26a
11 changed files with 263 additions and 103 deletions

View File

@@ -74,4 +74,15 @@ class Gallery extends Model
return $password;
}
public function clearSparkboothConnection(): void
{
$this->forceFill([
'upload_token_hash' => null,
'upload_token_expires_at' => null,
'sparkbooth_username' => null,
'sparkbooth_password' => null,
'upload_enabled' => false,
])->save();
}
}