Beispiel #1
0
 public static function getLogistic($key = null, $val = null)
 {
     if (is_null($key)) {
         $c = Logistic::get();
         self::$logistic = $c;
         return new self();
     } else {
         $c = Logistic::where($key, '=', $val)->first();
         self::$logistic = $c;
         return $c;
     }
 }