SpartnerNL/Laravel-Nova-Excel

[BUG] nova 4.33: Post 404 not found

gtoto007 opened this issue · 4 comments

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.

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()];
    }
 }
 :...

Do other actions work on that page?

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

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.