Eloquent::whereIn PHP Method

whereIn() public static method

Add a "where in" clause to the query.
public static whereIn ( string $column, mixed $values, string $boolean = 'and', boolean $not = false )
$column string
$values mixed
$boolean string
$not boolean
        public static function whereIn($column, $values, $boolean = 'and', $not = false)
        {
            return \Illuminate\Database\Query\Builder::whereIn($column, $values, $boolean, $not);
        }

Usage Example

コード例 #1
0
ファイル: BaseModel.php プロジェクト: mnking/june
 /**
  * Get multi store_value in table with mul tistore_key
  *
  * @param $key
  * @return array
  */
 public static function storeMultiGet($key)
 {
     $params = func_get_args();
     return parent::whereIn(self::$storeColumn['key'], $params)->lists(self::$storeColumn['value']);
 }
Eloquent