MCPcopy Create free account
hub / github.com/CoderOpen/waimai / getImageAttribute

Method getImageAttribute

app/Models/ChiHe/Project.php:44–52  ·  view source on GitHub ↗

* 获取设置 */

($value)

Source from the content-addressed store, hash-verified

42 * 获取设置
43 */
44 function getImageAttribute($value)
45 {
46 if (strpos($value,'http') === false) {
47 return url('/') . '/storage/'. $value;
48 } else {
49 return $value;
50 }
51
52 }
53
54 /**
55 * 设置

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected