/** * 处理搜索工具分类 * * @author yangyifan <*****@*****.**> */ public function postAdd(SearchCatRequest $request) { $affected_number = SearchCatModel::create($request->all()); return $affected_number->id > 0 ? $this->response(200, trans('response.add_success'), [], true, url('admin/search-cat/index')) : $this->response(400, trans('response.add_error'), [], true, url('admin/search-cat/index')); }