I believe that you probably have
use Illuminate\Validation\Validator;
in your file. (Your IDE probably thought this was useful.) To use the static call :: , the Validator must be flattened to Illuminate\Support\Facades\Validator . (The file \ app \ config \ app.php does this for you by default.)
Itβs likely that changing the usage statement to
use \Validator;
will correct the situation.
source share