[Vuejs]-Message: "Method Illuminate\Validation\Validator::validateTazker does not exist."

1👍

Remove BadgeCode validation attribute

         $this->validate($request,[           
            'BadgeCode'=>'required|string|unique:employees',  
            'BadgeType'=>'required', 
              'company_id'=>'required',
            'nationality_id'=>'required',
            'lastname'=>'required',
            'firstname'=>'required',
            'tazker'=>'required|string|tazker|unique:employees',
            'telphonenumber'=>'required',
            'position'=>'required',
            'supervisorname'=>'required',
            'supervisornumber'=>'required',
            'issuedate'=>'required',
            'expiredate'=>'required',
            'serialnumber'=>'required'


        ]);

0👍

I solved it as Ohgodwhy said in the comments

$this->validate($request,[           
            // 'BadgeCode'=>'required|string',  
           'BadgeCode'=>'required|unique:employees,BadgeCode',
            'BadgeType'=>'required', 
              'company_id'=>'required',
            'nationality_id'=>'required',
            'lastname'=>'required',
            'firstname'=>'required',
            'tazker'=>'required|string|unique:employees,tazker',
            'telphonenumber'=>'required',
            'position'=>'required',
            'supervisorname'=>'required',
            'supervisornumber'=>'required',
            'issuedate'=>'required',
            'expiredate'=>'required',
            'serialnumber'=>'required'

        //   $table->integer('nationality_id')->unsigned();

        ]);

Leave a comment