Support the ongoing development of Laravel.io →
Validation

hello i install propaganistas/laravel-phone with composer on local laravel prjoject i copy vendor directory from local project to laravel project on cpanel host and replaced it with the previous vendor directory but when i use this code

$validator = Validator::make($req->all(),[ "phone1" => "nullable|phone", "phone2" => "nullable|phone", "phone3" => "nullable|phone", "phone4" => "nullable|phone", ],$messages,$attr);

i get this error :

BadMethodCallException Method Illuminate\Validation\Validator::validatePhone does not exist.

Last updated 3 years ago.

javados liked this thread

1

Sign in to participate in this thread!

PHPverse

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.