SpartnerNL / Laravel-Nova-Excel

🚀 Supercharged Excel exports for Laravel Nova Resources
https://docs.laravel-excel.com/nova/1.0/
MIT License
382 stars 74 forks source link

[BUG] nova 4.33: Post 404 not found #176

Closed gtoto007 closed 5 months ago

gtoto007 commented 5 months ago

Prerequisites

Versions

Description

When I click on action Download Excel I have error " Post 404 Not Found" on network tab of chrome.

Screenshot 2024-06-05 at 18 27 15

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 5 months ago

Do other actions work on that page?

gtoto007 commented 5 months ago

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 https://github.com/SpartnerNL/Laravel-Nova-Excel/issues/176#issuecomment-2150513244, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTHOFP6CYXIDOE3YC2UT73ZF46E5AVCNFSM6AAAAABI3CUCIOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJQGUYTGMRUGQ . You are receiving this because you authored the thread.Message ID: @.***>

patrickbrouwers commented 5 months ago

I meant, if you add another action there, does it give a 404 on that action too or not?

gtoto007 commented 5 months ago

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.