pijler/laravel-common
A collection of shared building blocks for Laravel applications, bundling common helpers, traits, and service provider utilities to cut boilerplate across projects. Add it to any Laravel app to keep repeated setup code in one maintained place.
pijler/laravel-common is a shared-utilities package intended to be pulled into multiple Laravel applications, so the first thing to do is confirm you actually need it: it exists to centralise cross-project concerns (queue/Horizon helpers in this release) rather than to be a general-purpose framework.
Minimal steps:
composer require pijler/laravel-common.php artisan about or php artisan package:discover that CommonServiceProvider is registered.php artisan vendor:publish --tag=common-config. Check the resulting config/common.php (or equivalent) before changing anything — defaults are usually sane.HorizonQueue class and confirm which connection it resolves — as of v0.11.0 it uses your application's default queue connection unless you explicitly override it.Where to look first: the package's src/ directory (particularly anything queue- or Horizon-related), the published config, and the README's queue section. If you're on v0.10.x and your app relied on a non-default queue connection being hardcoded, read the Gotchas section before upgrading.
HorizonQueue references through controllers.queue.default (and horizon.defaults) in your .env/config/queue.php rather than trying to hardcode a connection at the call site.redis for Horizon, sqs for long-running jobs), explicitly set the connection on the job or queue config rather than assuming the package picks it up. The "default connection" behaviour means your QUEUE_CONNECTION env value is now authoritative.phpunit.xml set QUEUE_CONNECTION=sync (or null with Queue::fake()). Because the package now defers to the default connection, your test environment no longer needs to override anything package-specific.php artisan horizon as usual; if jobs vanish, check QUEUE_CONNECTION first — that's now the single source of truth for where HorizonQueue sends work.config/queue.php and your .env before upgrading.php artisan config:clear and, in production, php artisan config:cache again. Stale cached config is the most common cause of "the upgrade did nothing / broke everything" with queue-connection changes.QUEUE_CONNECTION is unset in a given environment, you fall back to config/queue.php's default (sync in fresh Laravel apps). That will silently run jobs inline in production if you forget to set it — verify in every environment.config/horizon.php. The package resolves the connection from Laravel's queue config, but Horizon's supervisors still need matching connection definitions; a mismatch surfaces as jobs being enqueued but never processed.php artisan queue:monitor and php artisan horizon:status will show which connection is actually in use. Pair this with a quick dd(config('queue.default')) in a tinker session when in doubt.v0.10.0...v0.11.0) yourself rather than trusting the changelog.composer.json with a conservative constraint until the connection-selection behaviour has been stable for a release or two, since it directly affects job durability.How can I help you explore Laravel packages today?