Pass filter data to Sushi model

Sorry team, I feel like a dumb dumb and am sure this is dead easy.
I just want to pass the filters to my Model that uses Sushi. There are a few hints at answers around but it is just not clicking in my head.

As you can see below, I just need access to the filters so I can do stuff.
Here is a super simplified version of my model:

namespace App\Models;

use App\Http\Controllers\AnimalController;
use Illuminate\Database\Eloquent\Model;
use Sushi\Sushi;

class AnimalModel extends Model
{
  use Sushi;

  public function getRows()
  {
    return [
      [
        'id' => 1,
        'name' => 'Frog',
        'count' => AnimalController::calculateMe($filter)// data based on filter
      ],
      [
        'id' => 2,
        'name' => 'bird',
        'count' => AnimalController::calculateMe($filter)// data based on filter
      ],

    ];
  }
}

Any advice you can give to this poor old brain would be appreciated.
Was this page helpful?