app/Http/Requests/CompleteUserRegisterRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'name' => 'required',
            'surName' => 'required',
            'gender' => 'required',
            'dateOfBirth' => 'required|before:13 years ago',
            'telephone' => 'required',
            'city' => 'required',
            'state' => 'required',
            'country' => 'required',
            'email' => 'required|email',
            'education' => 'required',
            'profession' => 'required',
            'maritalStatus' => 'required',
            'religion' => 'required',
            'income' => 'required',
            'sport' => 'required',
            'soccerTeam' => 'required',
            'height' => 'required',
            'weight' => 'required',
            'hasCar' => 'required',
            'hasChildren' => 'required',
            'liveWith' => 'required',
            'pet' => 'required'
        ];
    }
public function rules ( ) { return [ 'name' => 'required' , 'surName' => 'required' , 'gender' => 'required' , 'dateOfBirth' => 'required|before:13 years ago' , 'telephone' => 'required' , 'city' => 'required' , 'state' => 'required' , 'country' => 'required' , 'email' => 'required|email' , 'education' => 'required' , 'profession' => 'required' , 'maritalStatus' => 'required' , 'religion' => 'required' , 'income' => 'required' , 'sport' => 'required' , 'soccerTeam' => 'required' , 'height' => 'required' , 'weight' => 'required' , 'hasCar' => 'required' , 'hasChildren' => 'required' , 'liveWith' => 'required' , 'pet' => 'required' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .