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