Trying to create bulk action to print invoices
I am trying to create a bulk action to print invoices/challans. I created a simple action with the help of https://github.com/chandraauliatama/InvoiceCreator and while creating a bulk action I am trying to do the same thing but instead of sending a single challan I am (doing something stupid maybe) trying to send a collection of challan in route.
the route is
Route::get('challans/print', [PrintController::class, 'many'])->name('print.challans');
and the function in controller is
And the list page does not load. it gives me TypeError
Is there any other way to do it? A bulk action for printingGitHub
GitHub - chandraauliatama/InvoiceCreator
Contribute to chandraauliatama/InvoiceCreator development by creating an account on GitHub.
2 Replies
I think you can probably do this with a redirect instead, something like this:
Thanks, it worked