public static function getPosition($key = null, $val = null) { if (is_null($key)) { $c = Position::get(); self::$position = $c; return new self(); } else { $c = Position::where($key, '=', $val)->first(); self::$position = $c; return $c; } }
public static function getPosition() { $c = Position::get(); self::$position = $c; return new self(); }