28 lines
496 B
PHP
28 lines
496 B
PHP
|
<?php
|
||
|
|
||
|
namespace Modules\User\Http\Requests;
|
||
|
|
||
|
use Modules\Core\Http\Requests\Request;
|
||
|
|
||
|
class SaveRoleRequest extends Request
|
||
|
{
|
||
|
/**
|
||
|
* Available attributes.
|
||
|
*
|
||
|
* @var string
|
||
|
*/
|
||
|
protected $availableAttributes = 'user::attributes.roles';
|
||
|
|
||
|
/**
|
||
|
* Get the validation rules that apply to the request.
|
||
|
*
|
||
|
* @return array
|
||
|
*/
|
||
|
public function rules()
|
||
|
{
|
||
|
return [
|
||
|
'name' => 'required',
|
||
|
];
|
||
|
}
|
||
|
}
|