[Note] Tested on laravel 5.5.* only
A Laravel service provider to set the real IP address in Laravel Request
for applications behind cloudflare's reverse proxy.
Just install the package using composer, Laravel auto package discovery will take care of the rest .
composer require molayli/laravel-cloudflare-real-ip
This package is based on sumanion/laravel-cloudflare.