laravel框架Call to undefined method Dotenv\\Validator::make()" 报错
在控制器中用到了Validator::make(),它默认是use Dotenv\Validator;
解决办法
把
use Dotenv\Validator;
改为
use Illuminate\Support\Facades\Validator;
在控制器中用到了Validator::make(),它默认是use Dotenv\Validator;
把
use Dotenv\Validator;
改为
use Illuminate\Support\Facades\Validator;