2019-06-21 04:52:37 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Requests;
|
|
|
|
|
2020-03-29 01:03:52 +08:00
|
|
|
use App\Contracts\FormRequest;
|
2019-06-21 04:52:37 +08:00
|
|
|
use App\Models\Role;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @property array permissions
|
|
|
|
*/
|
|
|
|
class UpdateRoleRequest extends FormRequest
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Get the validation rules that apply to the request.
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function rules(): array
|
|
|
|
{
|
|
|
|
return Role::$rules;
|
|
|
|
}
|
|
|
|
}
|