在控制器中用到了Validator::make(),它默认是use DotenvValidator; 但这样会出现
use DotenvValidator;
call to undefined method DotenvValidator::make()
把use DotenvValidator; 改为
use IlluminateSupportFacadesValidator;
问题就解决了。在此记录下来。