コード例 #1
0
 /**
  * To where specific column and get values
  * @param  string $field
  * @param  string $value
  * @return Model
  */
 public function showByWhere($field, $value, $operator = '=')
 {
     $model = $this->model->listQuery();
     $model = $model->where($field, $operator, $value)->get();
     return $model;
 }