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
4.1.0

4.1.0 (2026-03-27)

Features

4.0.0

4.0.0 (2025-07-26)

⚠ BREAKING CHANGES

  • Remove support for Laravel 9 and 10 (#298) [no ci]

Features

  • Enhance Proxy Registration and Prevent Memory Leak (#293) (4bf313f)
  • Remove support for Laravel 9 and 10 (#298) [no ci] (eeb16e2)
3.8.0

3.8.0 (2025-03-04)

Features

3.7.1

3.7.1 (2024-03-30)

Bug Fixes

3.7.0

3.7.0 (2024-03-10)

Features

  • replace request ip with Cf-Connecting-Ip value (#284) (4e760aa)
3.6.0

3.6.0 (2024-03-01)

Features

3.5.0

3.5.0 (2023-02-07)

Features

3.4.0

3.4.0 (2023-02-07)

Features

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

3.3.1 (2022-08-13)

Bug Fixes

3.3.0

3.3.0 (2022-08-13)

Features

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

3.2.3 (2022-08-13)

3.2.2

3.2.2 (2022-01-30)

3.2.1

3.2.1 (2022-01-16)

Bug Fixes

3.2.0

3.2.0 (2022-01-16)

Features

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

3.1.0 (2022-01-15)

Features

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

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

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

1.8.0 (2021-02-13)

Features

1.7.0

This release also reduce the source zip file removing useless files.

Many thanks to @mvdnbrk for the contributions!

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 (#180)
1.3.0

Enhancements:

1.2.0

Enhancements:

  • Support Laravel 5.5 (#111 thanks to @Zae)

Fixes:

  • Use laravelcloudflare.cache config value instead of static value (#123 thanks to @zhanang19)
1.1.0

This version use now fideloper/proxy package as a backend to set trusted proxies See README.md file for a description about how to use it on an existing laravel application

Changelog:

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
  • Update Readme (thanks to @dmyers)
  • Update dependencies
1.0.0

First release

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
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
testo/output-teamcity
testo/bridge-symfony
spatie/flare-daemon-runtime