Queue exports giving error #1933
umar-zealtouch
started this conversation in
BUG
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Livewire PowerGrid version
v6.3.1
Livewire version
v3.0
Laravel version
v10.0
Which PHP version are you using?
PHP 8.3
Which Theme are you using?
Bootstrap 5
Have you published the resource files and customized them? (php artisan vendor:publish)
Yes
What is the problem?
In queue exports I am getting the below error.
Error: Call to a member function hasPermissionTo() on null
Code snippets
Button::add('reject')
->slot(' Reject')
->class('btn btn-danger btn-sm text-sm text-white')
->can($user->hasPermissionTo('approve_bill_payment'))
->dispatch('moderationRejectBillPayment', ['id' => $row->payment_id]),
How do you expect it to work?
It should work normal and should export the results.
Please confirm (incomplete submissions will not be addressed)
Beta Was this translation helpful? Give feedback.
All reactions