fix Class 'App\Http\Controllers\Validator' not found code example
Example 1: Class 'App\Http\Controllers\Validator' not found
use Illuminate\Support\Facades\Validator;
Example 2: Class 'App\Http\Controllers\Validator' not found in lumen
include below line on top of your file
use Illuminate\Support\Facades\Validator;