|
|
@ -46,7 +46,7 @@ class ActiveMain extends BaseModel |
|
|
|
public function indexImage(): HasOne |
|
|
|
public function indexImage(): HasOne |
|
|
|
{ |
|
|
|
{ |
|
|
|
return $this->hasOne('UploadFile', 'file_id', 'index_image_id') |
|
|
|
return $this->hasOne('UploadFile', 'file_id', 'index_image_id') |
|
|
|
->bind(['image_url' => 'preview_url']); |
|
|
|
->bind(['index_image_url' => 'preview_url']); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -56,7 +56,7 @@ class ActiveMain extends BaseModel |
|
|
|
public function themeImage(): HasOne |
|
|
|
public function themeImage(): HasOne |
|
|
|
{ |
|
|
|
{ |
|
|
|
return $this->hasOne('UploadFile', 'file_id', 'theme_image_id') |
|
|
|
return $this->hasOne('UploadFile', 'file_id', 'theme_image_id') |
|
|
|
->bind(['image_url' => 'preview_url']); |
|
|
|
->bind(['theme_image_url' => 'preview_url']); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|