xxxxxxxxxx
I found out the problem. You need to import the facade, and when you auto-import, it tends to get the wrong package. Look at the imports. If you find:
use Illuminate\Cache\RateLimiter;
You should replace with
use Illuminate\Support\Facades\RateLimiter;
Worked for me!