Ejemplo n.º 1
0
 public static function getLocationDetail($id)
 {
     $c = Assetlocation::find($id);
     return $c;
 }
Ejemplo n.º 2
0
 private function locationName($locationId)
 {
     $loc = Assetlocation::find($locationId);
     if ($loc) {
         return $loc->name;
     } else {
         return '';
     }
 }