public function findMany(array $ids)
    {
        $query = $this->getQuery();
        if ($this->isRestorable()) {
            $query->withTrashed();
        }

        return $query->whereIn($this->getModel()->getKeyName(), $ids)->get();
    }
public function findMany(array $ids)
    {
        $query = $this->getQuery();
        if ($this->isRestorable()) {
            $query->withTrashed();
        }

        return $query->whereIn($this->getModel()->getKeyName(), $ids)->get();
    }
public function findMany ( array $ ids ) { $ query = $ this -> getQuery ( ) ; if ( $ this -> isRestorable ( ) ) { $ query -> withTrashed ( ) ; } return $ query -> whereIn ( $ this -> getModel ( ) -> getKeyName ( ) , $ ids ) -> get ( ) ; }
Find model instances by ids.

@param int[] $ids

@return \Illuminate\Support\Collection
Find model instances by ids .