|
@@ -16,19 +16,19 @@ class EsgMain extends Model
|
16
|
16
|
protected function imgPcUrl(): Attribute
|
17
|
17
|
{
|
18
|
18
|
return Attribute::make(
|
19
|
|
- get: fn ($value) => is_null($this->img_pc) ? null :Storage::url($this->img_pc),
|
|
19
|
+ get: fn ($value) => is_null($this->img_pc) ? null :Storage::disk('public')->url($this->img_pc),
|
20
|
20
|
);
|
21
|
21
|
}
|
22
|
22
|
protected function imgMobileUrl(): Attribute
|
23
|
23
|
{
|
24
|
24
|
return Attribute::make(
|
25
|
|
- get: fn ($value) => is_null($this->img_mobile) ? null :Storage::url($this->img_mobile),
|
|
25
|
+ get: fn ($value) => is_null($this->img_mobile) ? null :Storage::disk('public')->url($this->img_mobile),
|
26
|
26
|
);
|
27
|
27
|
}
|
28
|
28
|
protected function ogImgUrl(): Attribute
|
29
|
29
|
{
|
30
|
30
|
return Attribute::make(
|
31
|
|
- get: fn ($value) => is_null($this->og_img) ? null :Storage::url($this->og_img),
|
|
31
|
+ get: fn ($value) => is_null($this->og_img) ? null :Storage::disk('public')->url($this->og_img),
|
32
|
32
|
);
|
33
|
33
|
}
|
34
|
34
|
public static function getMain(): self
|