fix: settings for apps and projects

add: coolify version config
fix: private key for private git based apps
This commit is contained in:
Andras Bacsai
2023-03-30 11:09:39 +02:00
parent 90424d9847
commit 3b191fa73e
11 changed files with 62 additions and 25 deletions

View File

@@ -7,6 +7,15 @@ use Spatie\Activitylog\Models\Activity;
class Application extends BaseModel
{
protected static function booted()
{
static::created(function ($application) {
ApplicationSetting::create([
'application_id' => $application->id,
]);
});
}
public function environment()
{
return $this->belongsTo(Environment::class);