for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Qsnh/meedu.
*
* (c) XiaoTeng <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace App\Http\Requests\Backend;
use Illuminate\Foundation\Http\FormRequest;
class FaqCategoryRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
* @return bool
public function authorize()
return true;
}
* Get the validation rules that apply to the request.
* @return array
public function rules()
return [
'name' => 'required',
];
public function messages(): array
'name.required' => '请输入分类名',
public function filldata(): array
'sort' => $this->input('sort', 0),
'name' => $this->input('name'),