Example #1
0
 static function getShippingName($id)
 {
     if ($id) {
         $item = Shipping_method::where('active', 1)->where('id', $id)->select()->get();
         if ($item && isset($item[0])) {
             return $item[0]->name;
         }
     }
     return ' - ';
 }
 /**
  * Get an item by id.
  *
  * @param  integer $id
  * @return boolean
  */
 public function getById($id)
 {
     return Shipping_method::findOrFail($id);
 }