예제 #1
0
파일: Prefs.php 프로젝트: awidarto/jexadmin
 public static function getMerchant($key = null, $val = null, $order = null, $dir = null)
 {
     if (is_null($key)) {
         $c = Merchant::where('group_id', '=', 4)->orderBy('merchantname', 'asc')->get();
         self::$merchant = $c;
         return new self();
     } else {
         $c = Merchant::where($key, '=', $val)->first();
         self::$merchant = $c;
         return $c;
     }
 }