title: Laravel SQL query midnight time not showing
body: <p>I am making a schedule display system and it shows the schedules of ferries. my problem is if I dont put midnight time in order then query skips midnight time and displays morning instead</p>
  <p>EXAMPLE:-</p>
  <p>if i put data in order like this</p>
  <ol>
  <li>1:30 am</li>
  <li>6:30 am</li>
  <li>7:30 am</li>
  </ol>
  <p>then the times show correctly, but if its not in order</p>
  <ol>
  <li>6:30 am</li>
  <li>7:30 am</li>
  <li>1:30 am</li>
  </ol>
  <p>then the query skips the 1:30 am and goes straight to 6:30 to display.</p>
  <p>Here is my laravel SQL Query:- if departure time is greater than current time then show the next available one</p>
  <pre><code>         DB::table('ferries')-&gt;groupBy('ferry_name')
          -&gt;whereTime('departure_time', '&gt;', Carbon::now()-&gt;toTimeString())
          -&gt;whereIn('schedule_type', ['Weekday'])
          -&gt;where('terminal_name', $terminal_name)-&gt;get()-&gt;all();
  </code></pre>