title: Laravel query for a range of time
body: <p>I am looking for a way to make a query which compares time, morning - 6 to 9, day - 9 to 12 , evening 12 - 5</p>
  
  <p>Right now, I am using an <code>select</code> option in html</p>
  
  <pre><code>&lt;select name="time" id="time"&gt;
            &lt;option disabled value=""&gt;Choose A Time&lt;/option&gt;
            &lt;option value="06:00 - 09:00"&gt;Morning - 06:00 - 09:00 &lt;/option&gt;
            &lt;option value="10:00 - 13:00"&gt;Day - 10:00 - 13:00 &lt;/option&gt;
            &lt;option value="14:00 - 18:00"&gt;Evening - 14:00 - 18:00&lt;/option&gt;
          &lt;/select&gt;
  </code></pre>
  
  <p>And I am trying to query it like this, <code>datetime</code> I get it from the database and it's like <code>2017-12-13 06:15:00</code></p>
  
  <pre><code>    $query-&gt;whereTime('datetime', '&gt;=', $request-&gt;get('time').':00')                    
      });
  </code></pre>
  
  <p>I have no idea how I can compare a range of time, like compare <code>06:00-09:00</code> with <code>06:15</code> </p>