This PR fixes artisan commands always returning 403 on sites behind Cloudflare.
It happened because $request->server('REMOTE_ADDR') always returning Cloudflare servers IPs, the fix is checking if the Cloudflare header "CF-Connecting-IP" exists and use it as request ip.
This PR fixes artisan commands always returning 403 on sites behind Cloudflare.
It happened because
$request->server('REMOTE_ADDR')
always returning Cloudflare servers IPs, the fix is checking if the Cloudflare header "CF-Connecting-IP" exists and use it as request ip.