Replies: 1 comment
-
Hi @ekmungai, class User extends Model
{
use SoftDeletes;
// ...
} |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Laravel Version
10.47.0
PHP Version
8.1.4
Database Driver & Version
No response
Description
The two events throw a
BadMethodCallException: Call to undefined method App\Models\User::forceDeleting()
andBadMethodCallException: Call to undefined method App\Models\User::restoring()
exception when attempting to boot the modelSteps To Reproduce
Create a class with closure listeners for the above events
Then try to initialise the model
Beta Was this translation helpful? Give feedback.
All reactions