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