title: Laravel eloquent select data
body: <p><strong>I want to build a eloquent query</strong> which builds this output :</p>
  
  <pre><code>SELECT * FROM `banners` WHERE (`channel` = "en-us" OR `channel` IS NULL) AND (`language` = "en" OR `language`IS NULL) AND (`country` = 'us' OR `country` IS NULL) AND `category_id` = "3954" AND `valid_from` &lt;= "2018-10-03 13:20:52" AND `valid_to` &gt;= "2018-10-03 13:20:52" OR `valid_to` IS NULL
  </code></pre>
  
  <p><em>I struggle with the "or" and "and" conditions.</em></p>
  
  <p>This should mean valid_from, valid_to, channel, language must have values, but in some cases "channel" and "language" can be null.</p>
  
  <p>Please help me. Thanks in advance!</p>