Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[9.0] Allow orderColumn using closure. #2199

Merged
merged 1 commit into from
Oct 2, 2019
Merged

[9.0] Allow orderColumn using closure. #2199

merged 1 commit into from
Oct 2, 2019

Conversation

yajra
Copy link
Owner

@yajra yajra commented Oct 2, 2019

Fix #2159, #2194.

return datatables()
    ->eloquent($query)
    ->setRowId('id')
    ->orderColumn('status', function($query, $order) {
        $query->orderBy('status', $order);
    });

@yajra yajra merged commit 34b8d9e into 9.0 Oct 2, 2019
@yajra yajra deleted the orderByClosure branch October 2, 2019 05:56
@Arkhas
Copy link
Contributor

Arkhas commented Oct 2, 2019

Sounds good to me ! Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OrderCoumn with Closure
2 participants