v2board/app/Http/Requests/Admin/ServerV2rayUpdate.php

29 lines
466 B
PHP
Raw Normal View History

2019-11-18 18:19:28 +08:00
<?php
namespace App\Http\Requests\Admin;
use Illuminate\Foundation\Http\FormRequest;
2020-06-11 20:47:02 +08:00
class ServerV2rayUpdate extends FormRequest
2019-11-18 18:19:28 +08:00
{
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
2020-01-11 13:36:52 +08:00
2019-11-18 18:19:28 +08:00
public function rules()
{
return [
'show' => 'in:0,1'
];
}
2020-01-11 13:36:52 +08:00
2019-11-18 18:19:28 +08:00
public function messages()
{
return [
'show.in' => '显示状态格式不正确'
];
}
}