Skip to content

Server-side export (Buttons) with separate index and data route and controller functions #3151

Answered by yajra
Extractivity asked this question in Q&A
Discussion options

You must be logged in to vote

The export function is currently handled using the render method. Given this, you can use:

    public function fooData (Request $request, FooDataTable $dataTable)
    {
        return $dataTable->render('dummy.view');
    }

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@yajra
Comment options

@Extractivity
Comment options

Answer selected by Extractivity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants