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;
}
}
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1P5Z86U
via IFTTT
Aucun commentaire:
Enregistrer un commentaire