title: How do I filter out list starting with a specific first letter (laravel/eloquent)
body: <p>I have a list of strings and only want to get the strings starting with the letter 'B'. I have tried the following code without success.</p>
  
  <pre><code>{{ $kentekens-&gt;where('kenteken', 'LIKE', 'B%') }}
  </code></pre>
  
  <p>and</p>
  
  <pre><code>{{ $kentekens-&gt;filter(function ($value, $key) {
          return strpos($value, 'B') === 0;
      });
  }}
  </code></pre>
  
  <h2>Controller</h2>
  
  <pre><code>public function create() {
          $kentekens = Kenteken::latest()
              -&gt;where('created_at', '&gt;=', Carbon::today())
              -&gt;get();
  
  return view('layouts.dashboard', compact('kentekens'));
  </code></pre>
  
  <p>Anyone know the correct syntax?</p>