title: Selecting all records created current year with Eloquent
body: <p>I need to select records created at current year, with Eloquent</p>
  
  <p>So far, this is the code I'm using. How can I filter the results to retrieve only the ones created in the current year?</p>
  
  <pre><code>public function vacationsbalance($typeId) {
      // Get vacataions balance for existing employee.
      $vacationsBalance = $this-&gt;vacations()-&gt;where('vacation_type_id', '=', $typeId)-&gt;sum('days_num');
      return $vacationsBalance;
  }
  </code></pre>