Skip to content

Upgrade Guide ​

Composer ​

bash
composer update hosni/laravel-edge-trust
php artisan vendor:publish --tag=edge-trust-config --force

Review the published config/edge-trust.php diff carefully — do not blindly overwrite production customizations.

Config shape notes ​

  • providers is a list of keys (or EDGE_TRUST_PROVIDERS comma list), not a nested enabled map.
  • Built-in keys use underscores: aws_cloudfront, google_cloud.
  • Cache key is prefix (not key_prefix).
  • Facade method for CIDRs is EdgeTrust::proxies() (not ips()).

After upgrading ​

bash
php artisan edge-trust:clear --force
php artisan edge-trust:sync
php artisan edge-trust:validate
php artisan edge-trust:status

Laravel / 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.

Released under the MIT License.