title: Fetch records that matches month and year using Laravel eloquent
body: <p>How do I query a table such that it only fetches records that matches a particular month and year e.g. Y-m i.e. 2020-10. of the 'created_at' column.</p>
  <p>This is what I am currently doing:</p>
  <pre><code>School::where('user_id', 1)-&gt;where('created_at', '=', '2020-10')-&gt;count();
  </code></pre>