Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 12 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
| RegenerateICPRolePlayProjectRequest | |
0.00% |
0 / 12 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
| authorize | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| rules | |
0.00% |
0 / 11 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Http\Requests\v2\RolePlay; |
| 4 | |
| 5 | use App\Http\Models\RolePlayProjects; |
| 6 | use Illuminate\Foundation\Http\FormRequest; |
| 7 | use Illuminate\Validation\Rule; |
| 8 | |
| 9 | class RegenerateICPRolePlayProjectRequest extends FormRequest |
| 10 | { |
| 11 | /** |
| 12 | * Determine if the user is authorized to make this request. |
| 13 | * |
| 14 | * @return bool |
| 15 | */ |
| 16 | public function authorize(): bool |
| 17 | { |
| 18 | return true; |
| 19 | } |
| 20 | |
| 21 | /** |
| 22 | * Get the validation rules that apply to the request. |
| 23 | * |
| 24 | * @return array |
| 25 | */ |
| 26 | public function rules(): array |
| 27 | { |
| 28 | return [ |
| 29 | 'type' => ['required', 'string', Rule::in([RolePlayProjects::$COLD_CALL, RolePlayProjects::$DISCOVERY_CALL])], |
| 30 | 'company_name' => ['required', 'string'], |
| 31 | 'company_size' => ['required', 'string'], |
| 32 | 'budget' => ['required', 'string'], |
| 33 | 'industry' => ['required', 'string'], |
| 34 | 'product_description' => ['required', 'string'], |
| 35 | 'key_features' => 'nullable|array', |
| 36 | 'key_features.*' => 'string|max:255', |
| 37 | 'difficulty_level' => 'required|numeric|in:1,2,3,4,5' |
| 38 | ]; |
| 39 | } |
| 40 | } |