|  | @@ -7,23 +7,51 @@ class StoreRequest extends FormRequest
 | 
	
		
			
			| 7 | 7 |  {
 | 
	
		
			
			| 8 | 8 |      public function rules(): array
 | 
	
		
			
			| 9 | 9 |      {
 | 
	
		
			
			| 10 |  | -        // $name, $email, $mobile, $trackNo
 | 
	
		
			
			| 11 | 10 |          return [
 | 
	
		
			
			| 12 |  | -            'name'      => 'required',
 | 
	
		
			
			| 13 |  | -            'email'     => 'required|email',
 | 
	
		
			
			| 14 |  | -            'mobile'    => 'required',
 | 
	
		
			
			| 15 |  | -            'trackNo'   => 'required'
 | 
	
		
			
			|  | 11 | +            'trackNo'   => 'required',
 | 
	
		
			
			|  | 12 | +            'firstName'     => 'required',
 | 
	
		
			
			|  | 13 | +            'lastName'      => 'required',
 | 
	
		
			
			|  | 14 | +            'companyName'   => 'required',
 | 
	
		
			
			|  | 15 | +            'companyEmail'  => 'required|email',
 | 
	
		
			
			|  | 16 | +            'backupEmail'   => 'nullable|email',
 | 
	
		
			
			|  | 17 | +            'phoneNumber'    => 'required',
 | 
	
		
			
			|  | 18 | +            'country'   => 'required',
 | 
	
		
			
			|  | 19 | +            // 'registeredSession'   => 'required',    // 如果選擇台灣track則必填
 | 
	
		
			
			|  | 20 | +            // 'lunchOptions'   => 'required',         // 如果選擇台灣track則必填
 | 
	
		
			
			|  | 21 | +            'typeOfIndustry'   => 'required',
 | 
	
		
			
			|  | 22 | +            'typeOfJob'   => 'required',
 | 
	
		
			
			|  | 23 | +            'jobTitle'   => 'required',
 | 
	
		
			
			|  | 24 | +            'trackOfInterest'   => 'required',
 | 
	
		
			
			|  | 25 | +            'areaOfInterest'   => 'required',
 | 
	
		
			
			|  | 26 | +            'howToKnowAboutTheEvent'   => 'required',
 | 
	
		
			
			|  | 27 | +            'consentAcceptEmail'   => 'required',
 | 
	
		
			
			|  | 28 | +            'consentPrivacyPolicy'   => 'required',
 | 
	
		
			
			|  | 29 | +            
 | 
	
		
			
			| 16 | 30 |          ];
 | 
	
		
			
			| 17 | 31 |      }
 | 
	
		
			
			| 18 | 32 |  
 | 
	
		
			
			| 19 | 33 |      public function messages(): array
 | 
	
		
			
			| 20 | 34 |      {
 | 
	
		
			
			| 21 | 35 |          return [
 | 
	
		
			
			| 22 |  | -            'name.required'     => 'column [name] is required.',
 | 
	
		
			
			| 23 |  | -            'email.required'    => 'column [email] is required.',
 | 
	
		
			
			| 24 |  | -            'email.email'       => 'column [email] format error',
 | 
	
		
			
			| 25 |  | -            'mobile.required'   => 'column [mobile] is required.',
 | 
	
		
			
			| 26 | 36 |              'trackNo.required'  => 'column [trackNo] is required.',
 | 
	
		
			
			|  | 37 | +            'firstName.required'    => 'column [firstName] is required.',
 | 
	
		
			
			|  | 38 | +            'lastName.required'     => 'column [lastName] is required.',
 | 
	
		
			
			|  | 39 | +            'companyName.required'  => 'column [companyName] is required.',
 | 
	
		
			
			|  | 40 | +            'companyEmail.required' => 'column [companyEmail] is required.',
 | 
	
		
			
			|  | 41 | +            'companyEmail.email'    => 'column [companyEmail] format error',
 | 
	
		
			
			|  | 42 | +            'backupEmail.email'     => 'column [backupEmail] format error',
 | 
	
		
			
			|  | 43 | +            'phoneNumber.required'  => 'column [phoneNumber] is required.',
 | 
	
		
			
			|  | 44 | +            'country.required'  => 'column [country] is required.',
 | 
	
		
			
			|  | 45 | +            // 'registeredSession.required'  => 'column [registeredSession] is required.',     // 如果選擇台灣track則必填
 | 
	
		
			
			|  | 46 | +            // 'lunchOptions.required'  => 'column [lunchOptions] is required.',     // 如果選擇台灣track則必填
 | 
	
		
			
			|  | 47 | +            'typeOfIndustry.required'  => 'column [typeOfIndustry] is required.',
 | 
	
		
			
			|  | 48 | +            'typeOfJob.required'  => 'column [typeOfJob] is required.',
 | 
	
		
			
			|  | 49 | +            'jobTitle.required'  => 'column [jobTitle] is required.',
 | 
	
		
			
			|  | 50 | +            'trackOfInterest.required'  => 'column [trackOfInterest] is required.',
 | 
	
		
			
			|  | 51 | +            'areaOfInterest.required'  => 'column [areaOfInterest] is required.',
 | 
	
		
			
			|  | 52 | +            'howToKnowAboutTheEvent.required'  => 'column [howToKnowAboutTheEvent] is required.',
 | 
	
		
			
			|  | 53 | +            'consentAcceptEmail.required'  => 'column [consentAcceptEmail] is required.',
 | 
	
		
			
			|  | 54 | +            'consentPrivacyPolicy.required'  => 'column [consentPrivacyPolicy] is required.',
 | 
	
		
			
			| 27 | 55 |          ];
 | 
	
		
			
			| 28 | 56 |      }
 | 
	
		
			
			| 29 | 57 |  }
 |