You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know what's wrong but this code generates an error.
$batch = computed(fn () => Bus::findBatch($this->batchId));
// Even when I use a constant as batch ID like...$batch = computed(fn () => Bus::findBatch('xxxxxxxx'));
Even if I create a variable to assign this expression on mount, same error.
But once I put something other than this expression, everything works.
I wonder whether it's caused by the Bus facade...
Here is how the view code looks like
Steps To Reproduce
In a Volt component (here anonymous), create a computed property retrieving a batch instance from the database.
The text was updated successfully, but these errors were encountered:
Can you first please try one of the support channels below? If you can actually identify this as a bug, feel free to open up a new issue with a link to the original one and we'll gladly help you out.
Volt Version
1.3.0
Laravel Version
10.10.0
PHP Version
8.2.3
Database Driver & Version
MySQL 8.0.28
Description
I don't know what's wrong but this code generates an error.
Even if I create a variable to assign this expression on mount, same error.
But once I put something other than this expression, everything works.
I wonder whether it's caused by the Bus facade...
Here is how the view code looks like
Steps To Reproduce
In a Volt component (here anonymous), create a computed property retrieving a batch instance from the database.
The text was updated successfully, but these errors were encountered: