php - Laravel validate error -
this error
symfony \ component \ debug \ exception \ fatalerrorexception phone call undefined method illuminate\validation\validator::make()
this code
$validator = validator::make($userdata,$rules); if( $validator->fails() ) { homecoming view::make('default::partials.user.getregistration')->witherrors($validator)->withinput(); }
what can be?
i believe have
use illuminate\validation\validator;
in file. (your ide thought beingness helpful.) utilize static ::
call, validator
should aliased illuminate\support\facades\validator
. (the \app\config\app.php file default.)
chances changing utilize statement
use \validator;
will prepare things.
php laravel
No comments:
Post a Comment