Upgrade Guide
Composer
bash
composer update hosni/laravel-edge-trust
php artisan vendor:publish --tag=edge-trust-config --forceReview the published config/edge-trust.php diff carefully — do not blindly overwrite production customizations.
Config shape notes
providersis a list of keys (orEDGE_TRUST_PROVIDERScomma list), not a nestedenabledmap.- Built-in keys use underscores:
aws_cloudfront,google_cloud. - Cache key is
prefix(notkey_prefix). - Facade method for CIDRs is
EdgeTrust::proxies()(notips()).
After upgrading
bash
php artisan edge-trust:clear --force
php artisan edge-trust:sync
php artisan edge-trust:validate
php artisan edge-trust:statusLaravel / PHP
EdgeTrust targets PHP 8.2+ and Laravel 10+ / 11 / 12 / 13. Check composer.json constraints for the version you install.
Laravel 10 is end-of-life upstream; prefer 11+ when you can. EdgeTrust still supports 10+ for apps that have not upgraded yet.
Breaking changes
This document will call out intentional breaking changes in future majors. Until then, treat SemVer patch bumps from the update-proxies workflow as archive/data refreshes, not API breaks.