📜  laravel 请求整数 - PHP 代码示例

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

代码示例2
$init_page = Input::get('initial_page');

$rules = [
    'initial_page' => 'required_with:end_page|integer|min:1|digits_between: 1,5',
    'end_page' => 'required_with:initial_page|integer|min:'. ($init_page+1) .'|digits_between:1,5'
];