suitmedia/laravel-cacheable
Suitmedia's laravel-cacheable is a Laravel package that makes Eloquent models and queries easy to cache, reducing database load and speeding up repeated reads. It offers simple integration with minimal configuration and convenient cache handling for common model operations.
This release (1.12.0) is primarily a compatibility and maintenance release: it adds Laravel 11 and PHP 8.3 support, drops PHP 7.4, and refreshes dependencies and CI. Start by confirming your application’s runtime matrix:
First steps:
composer.json for the package constraint and platform requirements.composer require <vendor>/<package>:^1.12 (or update an existing constraint).php artisan vendor:publish and php artisan migrate as documented in the README.Look first at the README and CHANGELOG for any package-specific upgrade notes. The release notes do not mention API changes, so the main first use case is upgrading an existing Laravel 10/PHP 8.1–8.2 app to Laravel 11/PHP 8.3 while keeping the package working.
Upgrade workflow
^1.12, then run composer update <vendor>/<package> --with-dependencies.composer why-not <vendor>/<package> 1.12.0 if resolution fails; this usually reveals a PHP or Laravel platform conflict.CI matrix
If you maintain an application or downstream package that depends on this one, test against the supported matrix:
php: ['8.1', '8.2', '8.3']
laravel: ['10.*', '11.*']
Exclude incompatible combinations (for example, Laravel 11 with PHP 8.1). This mirrors the package’s own updated GitHub Actions workflow.
Test metadata
The package moved its tests from doc-comment metadata to PHP 8 attributes. If you extend or copy its test patterns, prefer attributes such as #[DataProvider] and #[Test] over annotations. This is internal to the package, but it signals that the codebase now assumes PHP 8+ syntax.
Integration tips
^1.12 in applications that need Laravel 11 support; older constraints may resolve to a version that does not support it.bootstrap/providers.php). If the package relies on manual provider registration, confirm the documented steps still apply.composer update --with-all-dependencies and check for conflicts with your app’s pinned packages.composer why-not, composer show --platform, and composer diagnose. Most install failures after this release will be PHP version or Laravel framework constraint mismatches.How can I help you explore Laravel packages today?