jmikola/insecure-routes-bundle
Symfony bundle for enforcing HTTPS on sensitive routes: mark routes as secure-only and the listener denies or redirects any request arriving over plain HTTP. Simple YAML configuration, works with your existing firewall and route names.
composer require path into Laravel without pulling Symfony2-era routing/container dependencies that conflict with Illuminate components. Adoption would require a legacy Symfony2 kernel and bundle registration. For Laravel, the equivalent is a small environment-gated provider/middleware.URL::forceScheme('https'), TrustProxies, HSTS only outside local/testing, local TLS via Valet/Herd/mkcert, and middleware for any required HTTPS redirects. Keep environment as the switch—not a runtime config flag that could be flipped in production.require-dev only, and verify it cannot activate in production. For Laravel, build a narrowly scoped internal equivalent with tests around URL schemes, secure cookies, proxy headers, and redirect behavior.local/testing. If legacy Symfony is involved, containerize/isolate it and prevent bundle activation outside dev/test before any broader migration work.How can I help you explore Laravel packages today?