mirror of
https://github.com/v2board/v2board.git
synced 2025-02-26 15:20:25 +08:00
32 lines
660 B
PHP
32 lines
660 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Admin;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class PaymentSave extends FormRequest
|
|
{
|
|
/**
|
|
* Get the validation rules that apply to the request.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
'name' => 'required',
|
|
'payment' => 'required',
|
|
'config' => 'required'
|
|
];
|
|
}
|
|
|
|
public function messages()
|
|
{
|
|
return [
|
|
'name.required' => '显示名称不能为空',
|
|
'payment.required' => '网关参数不能为空',
|
|
'config.required' => '配置参数不能为空'
|
|
];
|
|
}
|
|
}
|