v7.0.0
This introduces version 7.0.0 of the nasirkhan/module-manager package, focusing on improved dependency management and the addition of a modular activity logging system. The most significant changes are the addition of the spatie/laravel-activitylog and intervention/image-laravel packages as direct dependencies, the creation of a new Activity Log module, and related code and documentation updates.
Dependency Management and Breaking Changes:
- Added
spatie/laravel-activitylog(for activity logging) andintervention/image-laravel(for image manipulation) as direct dependencies incomposer.json. Applications using these can now remove them from their owncomposer.jsonfiles. (composer.json,CHANGELOG.md,UPGRADE.md) [1] [2] [3] - Updated the upgrade guide and changelog to document these breaking changes and provide migration steps for users. (
UPGRADE.md,CHANGELOG.md) [1] [2]
Activity Log Module Addition:
- Introduced a new
ActivityLogmodule, including service provider, configuration, migration, views, and module manifest. This module integratesspatie/laravel-activitylogfor tracking model changes. (src/Modules/ActivityLog/*) [1] [2] [3] [4] [5] - Registered the
ActivityLogmodule as enabled by default in the module manager. (src/ModuleManagerServiceProvider.php)
Code Quality and Maintenance:
- Updated the
Postmodel to use the correct traits and methods fromspatie/laravel-activitylog, reflecting changes in the dependency's API. (src/Modules/Post/Models/Post.php) [1] [2] - Minor code improvements such as using the new PHP exception syntax. (
src/ModuleManagerServiceProvider.php)
These changes streamline dependency management, introduce modular activity logging, and improve maintainability for future development.