后台代码: /** * POST * admin/cate * 添加 */ public function store(Request $request) { $input = $request->all(); $rule = [ 'name' => 'required', ]; $message = [ 'name.required' => 'name not allow null' ]; $validate = Validator::make($input, $rule, $message); if (!$validate->