Weave Code
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 Cloudflare Laravel Package

monicahq/laravel-cloudflare

Laravel middleware that automatically trusts Cloudflare proxy IP ranges so client IPs and forwarded headers are handled correctly. Drop-in replacement for Laravel’s TrustProxies, with an optional callback to customize how proxy lists are loaded.

View on GitHub
Deep Wiki
Context7
3.5.0

Features

3.4.0

Features

  • support php 8.2 and drop php 7.4 support (#266) (6909f64)
3.3.1

Bug Fixes

3.3.0

Features

  • add a laravelcloudflare.enabled config (#254) (8031864)
3.2.3
3.2.2
3.2.1

Bug Fixes

3.2.0 (2022-01-16)

Features

  • add a customisable callback to get proxies (#234) (207609b)

3.1.0 (2022-01-15)

Features

  • first time load blocks when not loaded (#232) (e63ba67)

3.0.0 (2022-01-14)

Features

  • prepare to Laravel 9 and remove Fideloper\Proxy dependency (#229) (fd43401)

BREAKING CHANGES

  • TrustProxy class has changed extend class

2.0.0 (2021-07-14)

Features

  • use laravel Http factory and remove guzzle dependency (#220) (34eb0d7)

BREAKING CHANGES

  • CloudflareProxies constructor has changed, this should not have an impact if you don't extend it. This version also removes Illuminate < 6.x compatibility.

1.8.0 (2021-02-13)

Features

1.7.0

Enhancements:

  • Support Laravel 8
  • Use fideloper/proxy version ^4.4
  • Allow guzzlehttp/guzzle version ^7.0
1.6.0

Enhancements:

  • Remove verbosity parameter
1.5.0

New features:

  • Merge Cloudflare ips with trusted proxies
1.4.0

Enhancements:

  • Support Laravel 7 and higher
1.3.0

Enhancements:

  • Support Laravel 6.0
1.2.0

Enhancements:

  • Support Laravel 5.5

Fixes:

  • Use laravelcloudflare.cache config value instead of static value
1.1.0

New features:

  • Use fideloper/proxy package as a backend to set trusted proxies

Enhancements:

  • Add a config file
  • Improve test coverage

Fixes:

  • Use register() ServiceProvider instead of boot()
1.0.1

Fixes:

  • Prefix http kernel middleware entry with slash in readme
  • Fix UnexpectedValueException throw
  • Fix some phpdoc
1.0.0

New features:

  • First release of monicahq/cloudflare

Enhancements:

  • Use guzzlehttp/guzzle to query cloudflare ips
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.
directorytree/privacy-filter-classifier
directorytree/privacy-filter
babenkoivan/elastic-client
innmind/static-analysis
innmind/coding-standard
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi
splash/scopes
splash/toolkit