title: Laravel Admin plugin, how to call a function only once for each row
body: <p>I have a Laravel project with Laravel admin running on it.<br>
  On the &quot;Users&quot; page I'm trying to display information both from the <code>users</code> table and the <code>pocket money</code> table like so:</p>
  <pre><code>...
  
  use Encore\Admin\Controllers\AdminController;
  use Encore\Admin\Grid;
  use HerazikaServer\Models\User;
  use HerazikaServer\Models\PocketMoney;
  
  ...
  
  class UserController extends AdminController
  {
      protected function grid()
      {
          $grid = new Grid(new User());
          // I'm trying to call this function only once for each row like so
          // $current = PocketMoney::getCurrentMonthDetails($grid-&gt;id);
  
          $grid-&gt;column('id', __('Id'));
          $grid-&gt;column('nickname', __('Nickname'));
  
          ...
  
          $grid-&gt;column('current pocket money period')-&gt;display(function() {
              $current = PocketMoney::getCurrentMonthDetails($this-&gt;id);
              return isset($current) ? $current-&gt;current_start_date.' '.$current-&gt;current_end_date : '';
          })-&gt;style('min-width:100px');
          $grid-&gt;column('daily objective')-&gt;display(function() {
              $current = PocketMoney::getCurrentMonthDetails($this-&gt;id);
              return isset($current) ? $current-&gt;daily_objective : '';
          });
          $grid-&gt;column('monthly objective')-&gt;display(function() {
              $current = PocketMoney::getCurrentMonthDetails($this-&gt;id);
              return isset($current) ? $current-&gt;monthly_objective : '';
          });
          $grid-&gt;column('attendance')-&gt;display(function() {
              $current = PocketMoney::getCurrentMonthDetails($this-&gt;id);
              return isset($current) ? $current-&gt;attendance.'/'.$current-&gt;monthly_objective : '';
          });
          
          ...
  
          return $grid;
      }
  }
  </code></pre>
  <p>However I am having to call <code>$current = PocketMoney::getCurrentMonthDetails($this-&gt;id);</code> for every column (about 20 times total). Is there a way to call the function only once?<br>
  I tried something along the lines of <code>getCurrentMonthDetails($grid-&gt;id);</code>. but it obviously throws an undefined error.</p>