📜  验证 laravel 字符串必须为空 - PHP 代码示例

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

代码示例1
public function rules() 
{
    return [
        'age' => 'integer',
        'title' => 'nullable|string|max:50'
    ];
}