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
Error occurs when using Eloquent's Prunable trait due to missing event() helper function.
PHP Fatal error: Uncaught Error: Call to undefined function Illuminate\Database\Eloquent\event() in /var/www/html/vendor/illuminate/database/Eloquent/MassPrunable.php:32
Error: Call to undefined function Illuminate\Database\Eloquent\event()
Your setup
WordPress Version: 6.7.1
Module version: 4.0.0
Are you using framework?: Bedrock
Additional context
The event() helper function isn't included in standalone Eloquent ORM. Need to implement this helper or modify the trait to work without the event system.
The text was updated successfully, but these errors were encountered:
Describe the bug
Error occurs when using Eloquent's
Prunable
trait due to missingevent()
helper function.Steps to reproduce the issue
Prunable
orMassPrunable
trait in a model (https://laravel.com/docs/11.x/eloquent#pruning-models)pruneAll()
methodCall to undefined function Illuminate\Database\Eloquent\event()
Your setup
Additional context
The
event()
helper function isn't included in standalone Eloquent ORM. Need to implement this helper or modify the trait to work without the event system.The text was updated successfully, but these errors were encountered: