Hi
PHP tool gives this waring: Argument '2' passed to whereBetween() is expected to be of type Illuminate\Database\Query\iterable, array given
on this:
return UserDoc::whereUserId($this->id)->whereBetween('created_at', [$fromDate, $toDate])->get();
definition of whereBetween is:
/**
* Add a where between statement to the query.
*
* @param \Illuminate\Contracts\Database\Query\Expression|string $column
* @param iterable $values
* @param string $boolean
* @param bool $not
* @return $this
*/