Laravel 5.5 throws ReflectionException CustomRequest Class doen't exist after upgrade from 5.4
composer dump-autoload
I was having the same problem and this worked just fine
I have the same error after upgrading from 5.4 to 5.5.I'm sure it's because of the all() method in the custom request class.
So I tried this just for testing purpose:
public function all(){ dd('test');}
Didn't work as well, got a ReflectionException that my custom request didn't exist.So I just removed the all() method entirely, and it worked for some reason, hmmm...
This can be resolved by changing:
public function all(){ dd('test');}
to:
public function all($keys = null){ dd('test');}
The signature was changed in the upgrade process to 5.5.