| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | public function getLogoPathAttribute() |
||
| 35 | { |
||
| 36 | $folder = 'indonesia-logo/'; |
||
| 37 | $id = $this->getAttributeValue('id'); |
||
| 38 | $arr_glob = glob(public_path().'/'.$folder.$id.'.*'); |
||
| 39 | if (count($arr_glob) == 1) { |
||
|
|
|||
| 40 | $logo_name = basename($arr_glob[0]); |
||
| 41 | $logo_path = url($folder.$logo_name); |
||
| 42 | |||
| 43 | return $logo_path; |
||
| 44 | } |
||
| 58 |