[BUG] nova 4.33: Post 404 not found
gtoto007 opened this issue · 4 comments
gtoto007 commented
Prerequisites
- Able to reproduce the behaviour outside of your code, the problem is isolated to Laravel Excel.
- Checked that your issue isn't already filed.
- Checked if no PR was submitted that fixes this problem.
Versions
- PHP version: 8.2
- Laravel version: 10.x
- Nova version: 4.33
- Package version: 3.1.55
Description
When I click on action Download Excel I have error " Post 404 Not Found" on network tab of chrome.
I added this code in my nova resource:
use Maatwebsite\LaravelNovaExcel\Actions\DownloadExcel;
....
class Student extends Resource {
....
public function actions(Request $request): array
{
return [new DownloadExcel()];
}
}
:...
patrickbrouwers commented
Do other actions work on that page?
gtoto007 commented
I have already deleted any other actions but the result is same.
Il giorno mer 5 giu 2024 alle 18:46 Patrick Brouwers <
***@***.***> ha scritto:
… Do other actions work on that page?
—
Reply to this email directly, view it on GitHub
<#176 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTHOFP6CYXIDOE3YC2UT73ZF46E5AVCNFSM6AAAAABI3CUCIOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJQGUYTGMRUGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
patrickbrouwers commented
I meant, if you add another action there, does it give a 404 on that action too or not?
gtoto007 commented
I found out the issue was caused by a field computed in Student Resource. I fixed it and than I can download excel with success.