godforheart/laravel-optimizer
A lightweight Laravel package that simplifies application optimization by caching configuration, routes, events, and views. It provides Artisan commands to run and clear Laravel's optimization caches, helping improve performance with minimal setup.
This package's v1.0.8 release is a compatibility release — the headline change is Laravel 12 support. That makes it the first version you should reach for on a Laravel 12 app, and the upgrade target if you're currently pinned to an older major.
Minimal steps:
php -v before bumping anything.composer require <vendor>/<package>:^1.0.8 — pin to ^1.0.8 rather than ^1.0 only if you need to guarantee the Laravel 12-compatible code path during rollout.php artisan vendor:publish --provider="<Vendor>\<Package>\<Package>ServiceProvider" --tag=config. Most Laravel packages ship one; read it before writing any code, since it usually documents the extension points.composer.json (illuminate/* constraints), its service provider (what it binds and registers), and any README section on Laravel version support. Those three tell you more than the release notes do.First use case: run your existing test suite against the new version on a branch before touching production config. This release changes framework compatibility, not (as far as the notes state) package behaviour, so the fastest signal is whether your current integration still passes on Laravel 12.
Treat v1.0.8 as a drop-in within the 1.x line and plan the upgrade like any other dependency bump:
composer.json pins laravel/framework to ^11.0, upgrading the package alone won't help — you'll need the framework constraint raised too, and composer why-not laravel/framework 12.* is the quickest way to find what's blocking it.composer update. Don't mix this with feature work; compatibility bumps are easiest to bisect when they're an isolated commit.laravel/framework: ^11.0 || ^12.0) is the standard way to keep a package-adjacent integration honest across majors.dont-discover entries in composer.json, confirm the provider is still registered after the update — php artisan about and php artisan package:discover will show it.composer.json and CHANGELOG) before assuming it's a no-op.^12.0 support and still have deprecation warnings or subtly broken behaviour on Laravel 12. Check the package's CI matrix if it's public.composer update fails, the error almost always names a third-party package that hasn't added ^12.0 yet — check that one, not this one.composer update on 8.1 is not possible, so upgrade PHP first if you haven't.php artisan config:clear and php artisan cache:clear before debugging "the package isn't loading" — in a cached environment the old provider registration can persist.vendor/ disappears on the next composer update.^1.0.8 (not 1.0.8) so you keep picking up patch fixes, but if a future 1.1 or 2.0 lands, read its notes before letting it in — this package's history suggests version bumps track framework majors.How can I help you explore Laravel packages today?