Skip to content
Discussion options

You must be logged in to vote

@fronbow you have total control of the search() function return.

You get the Crud query there but you don't need to use it. So you can do your completely custom query there.

In the end just return the same $this->crud->getEntriesAsJsonForDatatables($entries, $totalEntryCount, $filteredEntryCount, $start);

$entries = //your db model collection
$totalEntryCount = // the count of the total entries in the db
$filteredEntryCount = // the count of the filteredEntries
$start = // how many entries where skipped

I suggest you dd() those variables in a "regular" crud panel, to have a better look on what that function receives as input, and you should be able to continue using the crud datatable pag…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@fronbow
Comment options

@pxpm
Comment options

pxpm Nov 6, 2023
Maintainer

Answer selected by fronbow
@fronbow
Comment options

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