storage url o'zgartirildi
This commit is contained in:
@@ -45,10 +45,7 @@ class Slider extends Model
|
||||
public function getImage(): string
|
||||
{
|
||||
if (!empty($this->image)) {
|
||||
if (in_array(env('FILESYSTEM_DISK'), ['s3', 'minio'])) {
|
||||
return Storage::url($this->image);
|
||||
}
|
||||
return $this->image;
|
||||
return Storage::url($this->image);
|
||||
}
|
||||
|
||||
return '/images/nophoto.jpg';
|
||||
|
||||
Reference in New Issue
Block a user