title: laravel apache server issue
body: <p>I am getting AWS apache following issues
  ERROR
  BadMethodCallException
  HELP
  Call to undefined method Illuminate\Database\Query\Builder::isCustomerEmailIdUnique()</p>
  
  <p>this is model function</p>
  
  <pre><code>public function isCustomerEmailIdUnique($email,$customerId)
  {
      $dataCustomerId = DB::table($this-&gt;table)-&gt;where('email_id',$email)-&gt;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;
      }
  }
  </code></pre>