davide.cucurnia@vola.it
2024-02-01 555a537e2e5d9220e3777c30b185606823c817f2
commit | author | age
7c54fa 1 <?php
D 2
3 namespace App\Http\Requests;
4
5 use Illuminate\Contracts\Validation\Validator;
6 use Illuminate\Foundation\Http\FormRequest;
7
8 class getWebcustomerInformation extends FormRequest
9 {
10
11     public function attributes()
12     {
13         return [
14             'fiscal_code' => 'codice fiscale',
15         ];
16     }
17
18     /**
19      * Determine if the user is authorized to make this request.
20      *
21      * @return bool
22      */
23     public function authorize()
24     {
25         return true;
26     }
27
28     /**
29      * Get the validation rules that apply to the request.
30      *
31      * @return array<string, mixed>
32      */
33     public function rules()
34     {
35         return [
36             'k' => 'required|int',
37             't' => 'required|string'
38         ];
39     }
40
41     public function messages()
42     {
43     }
44
45     protected function failedValidation(Validator $validator)
46     {
47     }
48 }