title: How to use multiple OR,AND condition in Laravel query
body: <p>I'm new to laravel and I need help for query in laravel</p>
  
  <p>My Custom Query: (Return Correct Result)</p>
  
  <pre><code>  $centerid=$_POST['inputCenterStatus'];
    $courseid=$_POST['inputCourseStatus'];
  
    $sql1="SELECT * FROM xxstudentregistrationxx 
          WHERE 
          status='active'
          AND
          ('$centerid'=''  OR centerid='$centerid')
          AND
          ('$courseid'='' OR courseid='$courseid')";
  </code></pre>