Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Paseto Laravel Package

rcerljenko/laravel-paseto

View on GitHub
Deep Wiki
Context7

Getting Started

The headline for 2.2.0 is Laravel 11 support, so treat this release as the minimum version for any Laravel 11 application and confirm the constraint before anything else.

  1. Check the constraint, not just the changelog. Open the package's composer.json and verify it now allows laravel/framework ^10.0|^11.0 (or ^11.0 if 10.x was dropped) and that php is ^8.2. A changelog line saying "Laravel 11 support" is only true if the constraints actually permit it.
  2. Install on a scratch Laravel 11 app first. composer require vendor/package:^2.2 in a fresh laravel/laravel:^11.0 skeleton. If resolution fails, composer why-not vendor/package 2.2.0 tells you which transitive dependency is blocking it far faster than reading the solver output.
  3. Look first at: the published config file (php artisan vendor:publish --provider="Vendor\Package\ServiceProvider"), the service provider's register()/boot(), and any migrations the package ships. Those three are where Laravel 11's skeleton changes bite.
  4. First real use case: run the package's own test suite against orchestra/testbench ^9.0 before wiring it into your app. If the package has no L11 test matrix, you are the test matrix.

Implementation Patterns

Upgrade path for existing installs. Bump the constraint on a branch, then composer update vendor/package --with-dependencies, run your app's test suite, and only then merge. Do not combine this with a framework upgrade in the same PR — if something breaks you want to know which side caused it.

Dual-version support. If you maintain an app on 10.x and another on 11.x, keep the package constraint permissive and let CI pin the framework: a matrix of laravel/framework:^10.0 and ^11.0 against the same package version is the cheapest way to catch a regression that only shows on one side.

Provider registration. Laravel 11's slim skeleton has no config/app.php providers array. Package auto-discovery still works, but if you register the provider manually it belongs in bootstrap/providers.php. Same story for middleware aliases and route middleware — those now live in bootstrap/app.php via ->withMiddleware(), not app/Http/Kernel.php.

Config and environment. Publish the config in your deploy pipeline rather than committing it, and read package settings through config() — not env() — so php artisan config:cache doesn't silently return nulls in production.

Testbench for package-level tests. If you're consuming the package inside a larger app, a small testbench harness that boots the provider and asserts the published config/migrations is worth the setup; it catches L11 boot-order changes cheaply.

Gotchas and Tips

  • PHP 8.2 is the Laravel 11 floor. Most "package doesn't work on L11" reports are actually CI images still running 8.1. Check php -v before you file anything.
  • Constraint conflicts are usually transitive. The package may declare L11 support while an old dev-dependency of yours pins illuminate/support to 10.x. composer why-not resolves this in seconds.
  • Doctrine DBAL removal. Laravel 11 dropped the DBAL dependency used for change() on columns. If the package touches schema mutation, that's precisely the kind of thing 2.2.0 had to address — verify the migration path on a fresh database, not just an existing one.
  • Clear caches after the bump. php artisan config:clear && php artisan cache:clear after upgrading; stale cached config is the single most common false-negative when a package version changes.
  • Watch for deprecation noise. L11 surfaces deprecations that 10.x swallowed. Run your suite with deprecations visible once so you see the warnings before they become removals in 12.x.
  • Check the extension points before forking. Events dispatched in boot(), container bindings (interfaces resolved by the provider), and any Macroable classes are the supported seams. If your customisation reaches past those, you're on borrowed time at the next major.
  • No L11 CI in the package? Treat 2.2.0 as "claims support" rather than "proven support" and add your own smoke test around the package's primary entry point.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib