Skip to content

Commit

Permalink
fix RegisterController validator return type (#1557)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurHetem committed Jun 24, 2023
1 parent 16a31d2 commit ad97b7d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/Http/Controllers/Auth/RegisterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@
use App\Support\Countries;
use App\Support\HttpClient;
use App\Support\Timezonelist;
use Illuminate\Contracts\Validation\Validator;
use Illuminate\Foundation\Auth\RegistersUsers;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Validator;
use Illuminate\Support\Facades\Validator as ValidatorFacade;
use Illuminate\View\View;

class RegisterController extends Controller
Expand Down Expand Up @@ -126,7 +127,7 @@ function ($attribute, $value, $fail) {
];
}

return Validator::make($data, $rules);
return ValidatorFacade::make($data, $rules);
}

/**
Expand Down

0 comments on commit ad97b7d

Please sign in to comment.