Components\Posts\Services\PostsService::getRecent PHP Метод

getRecent() публичный Метод

Get recent posts
public getRecent ( string $type = 'post', integer $qty = 10 ) : Object
$type string [description]
$qty integer [description]
Результат Object
    public function getRecent($type = 'post', $qty = 10)
    {
        return Post::type($type)->target('public')->published()->latest()->take($qty)->get();
    }