Conversation
|
|
|
|
|
For example: static::whenBooted(fn () => static::observe(new ModelObserver));Shift found boot methods within the following files. You should review the code within these methods and update it to use the |
|
⚗️ Using this package? If you would like to help test these changes or believe them to be compatible, you may update your project to reference this branch. To do so, temporarily add Shift's fork to the {
"repositories": [
{
"type": "vcs",
"url": "https://github.com/laravel-shift/parental.git"
}
]
}Then update your dependency constraint to reference this branch: {
"require": {
"tightenco/parental": "dev-l13-compatibility",
}
}Finally, run: |
…dispatching Since Laravel 13 requires registering model events using the `whenBooted` callback, the existing `parentIsBooting()` guard was not catching the double registration, since it would happen after the models booted lifecycle. This commit simplify the implementation to checking for the `bootIfNotBooted` is in the call stack, which covers the entire boot lifecycle of the model. It also adds an early return when called from the child class to avoid unnecessary work there.
This is an automated pull request from Shift to update your package code and dependencies to be compatible with Laravel 13.x.
Before merging, you need to:
l13-compatibilitybranchIf you do find an issue, please report it by commenting on this PR to help improve future automation.