ServerV2raySort.php 546 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace App\Http\Requests\Admin;
  3. use Illuminate\Foundation\Http\FormRequest;
  4. class ServerV2raySort extends FormRequest
  5. {
  6. /**
  7. * Get the validation rules that apply to the request.
  8. *
  9. * @return array
  10. */
  11. public function rules()
  12. {
  13. return [
  14. 'server_ids' => 'required|array'
  15. ];
  16. }
  17. public function messages()
  18. {
  19. return [
  20. 'server_ids.required' => '服务器ID不能为空',
  21. 'server_ids.array' => '服务器ID格式有误'
  22. ];
  23. }
  24. }