belongsTo(Environment::class); } public function settings() { return $this->hasOne(ApplicationSetting::class); } public function destination() { return $this->morphTo(); } public function source() { return $this->morphTo(); } public function get_deployment(string $deployment_uuid) { return Activity::where('subject_id', $this->id)->where('properties->deployment_uuid', '=', $deployment_uuid)->first(); } }