/**
* 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->passes()) {
return back()->withErrors($validate);
}
return redirect('admin/cate');
}