| Total Complexity | 2 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class UserRoleRequest extends FormRequest |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Determine if the user is authorized to make this request |
||
| 12 | */ |
||
| 13 | public function authorize() |
||
| 14 | 5 | { |
|
| 15 | return $this->user()->can('create', UserRoles::class); |
||
| 16 | 5 | } |
|
| 17 | |||
| 18 | /** |
||
| 19 | * Get the validation rules that apply to the request |
||
| 20 | */ |
||
| 21 | public function rules() |
||
| 27 | ]; |
||
| 28 | } |
||
| 30 |