class_exists() can trigger uncatchable E_COMPILE_ERROR when autoloading classes with method signature mismatches (e.g. Activity model vs updated Spatie parent). Now checks file contents for '#[Scheduled' string before attempting to load — avoids autoloading hundreds of unrelated classes. Also fixes Activity::getChangesAttribute() return type to match the updated Spatie parent (Collection instead of array). Co-Authored-By: Virgil <virgil@lethean.io> |
||
|---|---|---|
| .. | ||
| Activity.php | ||