title: counting elements of various columns in laravel 6.0
body: <p>I want to do a single count of two columns that I have in my database, if exists a record in one of the two columns I would like to take it in the count... In the two columns I have some elements that are repeated and I would like to take them in the same count.</p>
  
  <p>I tried with this but it dind't work</p>
  
  <pre><code>$individuales = DB::table('incidencias')
      -&gt;where('inc_padre', '!=', '')
      -&gt;orWhere('nro_ticket' '!=', '')
      -&gt;count(DB::raw('DISTINCT(inc_padre), DISTINCT(nro_ticket)'));
  </code></pre>
  
  <p>can you help me?</p>