Skip to content

Feature request: orderBy()->where()->take()->get(); #3

Closed
@mrusme

Description

@mrusme

Hi,

would it possible to allow combinations of orderBy with where? Something like this:

AnotherModel::orderBy('created_at', 'desc')->where('some_id', '=', new MongoID((string) $model->_id))->take(1)->get();

This would be really cool to have. Please correct me, if there already should be a feature like this available!

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions