Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to a member function diff() on null #129

Open
2 of 3 tasks
puspjoshi opened this issue Nov 17, 2021 · 0 comments
Open
2 of 3 tasks

Call to a member function diff() on null #129

puspjoshi opened this issue Nov 17, 2021 · 0 comments

Comments

@puspjoshi
Copy link

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.0
  • Laravel version: 8.70.2
  • Nova version: 3.29
  • Package version: Nova 1.X

Description

While exporting to csv/xlsx computed field does not work with laravel diff between updated and created date format.

Steps to Reproduce

In nova resource my code is:
laravel-excel-nova-code

In table all working properly :
laravel-excel-nova-result

But while exporting im getting null on diff. :
larave-excel-export-error

Expected behavior:
I want to export that computed field(updated_at - created_at)

Actual behavior:

laravel-excel-nova-result
laravel-excel-nova-code
larave-excel-export-error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant