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'
]);
- [Vuejs]-Laravel Pusher VueJS http://localhost:8000/broadcasting/auth 404 (Not Found)
- [Vuejs]-Maintain associated objects in Vue
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();
]);
Source:stackexchange.com