I am getting AWS apache following issues ERROR BadMethodCallException HELP Call to undefined method Illuminate\Database\Query\Builder::isCustomerEmailIdUnique()
this is model function
public function isCustomerEmailIdUnique($email,$customerId)
{
$dataCustomerId = DB::table($this->table)->where('email_id',$email)->get(['customer_id']);
// If customerId of email exist , return true. if email id not exist return false
$data = json_decode(json_encode($dataCustomerId), true);
if(empty( $data) || $data['customer_id'] == $customerId ){
return true;
}else{
return false;
}
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire