Laravel的流利验证规则构建器 使用流畅的语法来构建 范例: $ rules = [ 'id' => Rule :: int ()-> required (), 'name' => Rule :: string ()-> required ()-> minLength ( 3 )-> toString (), 'email' => Rule :: string ()-> required ()-> email ()-> toArray (), 'role_id' => Rule :: modelExists ( Role ::class), 'salary' => Rule :: int ()-> when ( $ isPHPDeveloper , function ( $ rule