36 lines
620 B
PHP
36 lines
620 B
PHP
<?php
|
|
/**
|
|
* Created by PhpStorm.
|
|
* User: dingran
|
|
* Date: 2019/3/10
|
|
* Time: 下午1:18
|
|
*/
|
|
|
|
namespace app\platform\modules\user\requests;
|
|
|
|
|
|
class RoleUpdateRequest extends Request
|
|
{
|
|
/**
|
|
* Determine if the user is authorized to make this request.
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function authorize()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* Get the validation rules that apply to the request.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
'name'=>'required|unique:yz_admin_roles,name,'.$this->get('id').'|max:255',
|
|
];
|
|
}
|
|
}
|