是的 ,是刚才不小心删除了后面大段代码然后保存推出了 重新安装fpm就好了 很尴尬
老师好我按照视频里面进行到sudo vim /etc/php/7.1/fpm/pool.d/www.conf
之后出现的是`
; Start a new pool named 'www'.
; the variable $pool can we used in any directive and will be replaced by the
; pool name ('www' here)
[www]
; Per pool prefix
; It only applies on the following directives:
; - 'access.log'
; - 'slowlog'
; - 'listen' (unixsocket)
; - 'chroot'
; - 'chdir'
; - 'php_values'
; - 'php_admin_values'
; When not set, the global prefix (or /usr) applies instead.
; Note: This directive can also be relative to the global prefix.
; Default Value: none
;prefix = /path/to/pools/$pool
我想达到先对结果分类再进行多字段的模糊搜索,结果发现后面的搜索功能实现了但却没有分类
不知道是什么原因
$q = $_GET['q'];//搜索关键词
$s = $_GET['s'];//分类
$res = DB::table('events')
->where('sort',$s)
->where('name','like','%'.$q.'%')
->orWhere('content','like','%'.$q.'%')
->orWhere('place','like','%'.$q.'%');
-> paginate(10);