Skip to content

Conversation

@PJTech-UK
Copy link

After upgrading to Laravel 10, attempts to access attributes on a macsidigital/laravel-zoom Meeting throw undefined method exception for preventsAccessingMissingAttributes() - This is due the Macsi version of HasAttributes including the Laravel HasAttributes trait, which assumes this method exists when checking 'model' attribute access.

e.g.
[2025-11-13 11:19:25] local.ERROR: Call to undefined method MacsiDigital\Zoom\Meeting::preventsAccessingMissingAttributes() {"userId":4,"exception":"[object] (BadMethodCallException(code: 0): Call to un
defined method MacsiDigital\Zoom\Meeting::preventsAccessingMissingAttributes() at /var/www/html/vendor/macsidigital/laravel-api-client/src/Traits/ForwardsCalls.php:50)

Somewhere between Laravel 8 and 10, they have added static calls to preventsAccessingMissingAttributes whenever accessing an attribute (in my case $meeting->start_time). Laravel 10 implements this method in the abstract Eloquent/Model class but anything which implements the HasAttributes trait has an implicit dependency on this method being defined :-(

In this PR I've just copied the approach in Eloquent's Model Class and can confirm that it fixes the issue on my site.

…on a macsidigital/laravel-zoom Meeting throw undefined method exception for preventsAccessingMissingAttributes() - This is due the Macsi version of HasAttributes including the Laravel HasAttributes trait, which assumes this method exists when checking 'model' attribute access
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

Successfully merging this pull request may close these issues.

1 participant