where($filter)->find(); if(!empty($result)) $result = $result->toArray(); return $result; } }