32 lines
528 B
PHP
32 lines
528 B
PHP
<?php
|
|
|
|
namespace app\common\requests;
|
|
|
|
use app\common\requests\Request;
|
|
|
|
class TestMemberRequest extends Request
|
|
{
|
|
/**
|
|
* Determine if the user is authorized to make this request.
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function authorize()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
/**
|
|
* Get the validation rules that apply to the request.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
'name'=>'required',
|
|
'email'=>'required',
|
|
];
|
|
}
|
|
}
|