MySQL 8.0.32 for macOS 14.3.1 on Apple Silicon (Homebrew)
Description
When attempting to soft-delete a model that implements soft deletion (using Laravel's SoftDeletes trait), the deleted event defined in the model's observer does not fire as expected. This issue is encountered when using Laravel's built-in soft deletion functionality.
Steps To Reproduce
Create a model with soft deletion enabled using Laravel's SoftDeletes trait.
Implement an observer for the model and define event handling methods (deleted, restored, etc.).
Soft-delete an instance of the model using the delete() method or a similar soft-deletion mechanism.
Observe that the deleted event defined in the model's observer does not fire.
Laravel Version
10.0
PHP Version
8.2
Database Driver & Version
MySQL 8.0.32 for macOS 14.3.1 on Apple Silicon (Homebrew)
Description
When attempting to soft-delete a model that implements soft deletion (using Laravel's
SoftDeletes
trait), thedeleted
event defined in the model's observer does not fire as expected. This issue is encountered when using Laravel's built-in soft deletion functionality.Steps To Reproduce
SoftDeletes
trait.deleted
,restored
, etc.).delete()
method or a similar soft-deletion mechanism.