📜  como usa uma 请求 - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:55.046000             🧑  作者: Mango

代码示例1
/**
 * Get the validation rules that apply to the request.
 *
 * @return array
 */
public function rules()
{
    return [
        'title' => 'required|unique:posts|max:255',
        'body' => 'required',
    ];
}