Kirin 3 vuotta sitten
vanhempi
commit
751d15f5b5
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4 0
      app/models/system/SystemStoreApply.php

+ 4 - 0
app/models/system/SystemStoreApply.php

@@ -30,6 +30,10 @@ class SystemStoreApply extends BaseModel
      */
     protected $name = 'system_store_apply';
 
+    protected $append = [
+        'latlng'
+    ];
+
     public static function getLatlngAttr($value, $data)
     {
         return $data['latitude'] . ',' . $data['longitude'];