Skip to content

Commit

Permalink
Allow calls for Livewire
Browse files Browse the repository at this point in the history
  • Loading branch information
barryvdh committed Dec 23, 2021
1 parent 57fdb6d commit 1981b22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Node/GetAttrNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public static function attribute(
$sandboxed = false,
int $lineno = -1
) {
if (Template::METHOD_CALL !== $type and is_a($object, 'Illuminate\Database\Eloquent\Model')) {
if (Template::METHOD_CALL !== $type and (is_a($object, 'Illuminate\Database\Eloquent\Model') || is_a($object, 'Livewire\Component'))) {
// We can't easily find out if an attribute actually exists, so return true
if ($isDefinedTest) {
return true;
Expand Down

0 comments on commit 1981b22

Please sign in to comment.