parent
commit
cf9144fd4d
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      app/Models/Project.php

+ 1
- 1
app/Models/Project.php View File

81
     public function firstListImgUrl(): Attribute
81
     public function firstListImgUrl(): Attribute
82
     {
82
     {
83
         return Attribute::make(
83
         return Attribute::make(
84
-            get: fn ($value) => empty($this->img_url) ? null : is_array($this->img_url)? Storage::url($this->img_url[0]) : Storage::url($this->img_url),
84
+            get: fn ($value) => !empty($this->img_url) ? Storage::url($this->img_url[0]) : null,
85
         );
85
         );
86
     }
86
     }
87
 
87