protected function extractWheres()
{
$prop = $this->getRouteReflection()->getProperty('wheres');
$prop->setAccessible(true);
$wheres = $prop->getValue($this->route);
// Хак, чтобы в json всегда был объект
if (empty($wheres)) {
return (object) [];
}
return $wheres;
}