public function query(array $arguments = [])
    {
        $defaults = array_merge($this->queryDefaults, [
            'post_type' => $this->getSlug(),
        ]);

        return $this->plugger
            ->setModel($this)
            ->setAdapter(Post::class)
            ->plugIn(get_posts(array_merge($arguments, $defaults)))
            ->getConnected();
    }
public function query(array $arguments = [])
    {
        $defaults = array_merge($this->queryDefaults, [
            'post_type' => $this->getSlug(),
        ]);

        return $this->plugger
            ->setModel($this)
            ->setAdapter(Post::class)
            ->plugIn(get_posts(array_merge($arguments, $defaults)))
            ->getConnected();
    }
public function query ( array $ arguments = [ ] ) { $ defaults = array_merge ( $ this -> queryDefaults , [ 'post_type' => $ this -> getSlug ( ) , ] ) ; return $ this -> plugger -> setModel ( $ this ) -> setAdapter ( Post :: class ) -> plugIn ( get_posts ( array_merge ( $ arguments , $ defaults ) ) ) -> getConnected ( ) ; }
Query posttype.

@param array $arguments

@return \Illuminate\Support\Collection
Query posttype .