메소드 |
설명 |
|
paged ( integer $perPage = 10, integer $currentPage = 1 ) : Illuminate\Database\Eloquent\Collection |
Paginate the results |
|
published ( ) : PostBuilder |
Get only published posts |
|
slug ( $slug ) : PostBuilder |
Get only posts with a specific slug |
|
status ( string $postStatus ) : PostBuilder |
Get only posts with a custom status |
|
taxonomy ( $taxonomy, $term ) |
|
|
type ( string $type ) : PostBuilder |
Get only posts from a custom post type |
|
typeIn ( array $type ) : PostBuilder |
Get only posts from an array of custom post types |
|