Search code examples
phpformslaravellaravel-5reset-password

Call to undefined function Form() using laravel 5.2


when i go to my view, following error occurs:

FatalErrorException in 9edd5e400844b5418c6227c302e89f04657fb615.php line 3: Call to undefined function Form()

my view file :

{!!Form::open(array('url'=>'resetpwd','method'=>'PUT')) ;!!}
 <p>{!!Form(password('password'));!!}</p>
 {!!$errors->first('password');!!}
 {!!Form::hidden('code',$code);!!}
 <p> {!!Form::submit('Reset Passsword');!!} </p>
 {!!Form::close();!!}
 {!!$errors->first('reseterror');!!}

Solution

  • I am assuming you have installed Laravel Recepie. You do not declare Form::password() method correctly.Edit your code with below changes hope it will be helped you.See how to use this method in Laravel Recepie.
    Change {!!Form(password('password'));!!} to {!!Form::password('password');!!}