title: How to filter by month and year on updateOrCreate in laravel?
body: <p>How to filter <code>created_at</code> with month and year in Laravel's <code>updateOrCreate()</code>?</p>
  
  <pre><code>    $statistik = Statistik::updateOrCreate(
          [
              'kode_kantor' =&gt; $map-&gt;kode_kantor,
              'created_at'  =&gt; whereYear('created_at', '=', date('Y-m-d')),
              'created_at'  =&gt; whereMonth('created_at', '=', date('Y-m-d'))
          ]
      )-&gt;increment('poin_kunjungan');
  </code></pre>