Filippo Bertilotti
2024-09-10 13f6a9f0f63796e7b9767ccd83f1c3a17d496b0c
commit | author | age
0991a9 1 <?php
FB 2
3 namespace App\Http\Requests;
4
5 use Illuminate\Foundation\Http\FormRequest;
6
7 class SSOFormRequest extends FormRequest
8 {
9     /**
10      * Determine if the user is authorized to make this request.
11      *
12      * @return bool
13      */
14     public function authorize()
15     {
16         return true;
17     }
18
19     /**
20      * Get the validation rules that apply to the request.
21      *
22      * @return array<string, mixed>
23      */
24     public function rules()
25     {
26         return [
6aea63 27             'EmailAddress' => 'required|email', //da cambiare con una regular expression?
0991a9 28             'Name' => 'required',
FB 29             'Surname' => 'required',
30             'sim_1' => 'digits_between:10,10',
31             'sim_2' => 'digits_between:10,10',
32             'sim_3' => 'digits_between:10,10',
33             'sim_4' => 'digits_between:10,10',
34             'sim_5' => 'digits_between:10,10',
35             'sim_6' => 'digits_between:10,10'
36         ];
37     }
38 }