OK,看下where('id', '=', 1)的源码:
public function where($column, $operator = null, $value = null, $boolean...('id', '=', 1)的源码中可看出,重点就是把where()中的变量值按照$column, $operator, $value拆解并装入$wheres[ ]属性中,并且$wheres[ ]是一个...并且,在$bindings[]属性中把where过滤器与值相互绑定存储,如果有多个where过滤器,就类似这样绑定,['where' => [1, 'laravel', ...], ...]。...OK,看下where('id', '=', 1)的源码:
public function where($column, $operator = null, $value = null, $boolean...并且,在$bindings[]属性中把where过滤器与值相互绑定存储,如果有多个where过滤器,就类似这样绑定,['where' => [1, 'laravel', ...], ...]。