why form not submit in laravel 5.4 -


i have form user registration, working perfect before not submit , doesn't error. tried show post data not post data.. please

 <form role="form" id="reg-form" method="post" class="form-horizontal" action="{{ url('/create_user') }}">                      {{  csrf_field() }}                      <h2>create account</h2>   <div class="form-group">     <div class="col-sm-6" id="user-firstname">        <input type="text" class="form-control" id="firstname" name="firstname" placeholder="first name" required="required">      </div>      <div class="col-sm-6">        <input type="text" class="form-control" id="lastname" name="lastname" placeholder="last name">      </div>   </div>    <div class="form-group">      <div class="col-sm-12">        <input type="text" class="form-control" id="displayname" name="displayname" placeholder="choose display name" required="required">      </div>  </div>   <div class="form-group">      <div class="col-sm-12">        <input type="email" class="form-control" id="email" name="email" placeholder="your email" required="required">      </div>   </div>   <div class="form-group">     <div class="col-sm-12">        <input type="password" class="form-control" id="password" name="password" placeholder="password" required="required">      </div>   </div>   <div class="form-group">     <div class="col-sm-12">      <input type="password" class="form-control" id="confirm_password" name="confirm_password" onkeyup="checkpass(); return false;" placeholder="confirm password" required="required">     <span id="confirmmessage" class="confirmmessage"></span>    </div>  </div>     <button type="submit" class="btn btn-primary btn-block">sign in</button>  </form>

route

route::post('/create_user', 'auth\registercontroller@createuser'); 

method

public function createuser(request $request) {     dd($request->all());  } 

possible error "/"

<form role="form" id="reg-form" method="post" class="form-horizontal" action="{{ url('/create_user') }}"> 

so plz remove like

<form role="form" id="reg-form" method="post" class="form-horizontal" action="{{ url('create_user') }}"> {{-- '/' removed --}} 

and in

route::post('create_user', 'auth\registercontroller@createuser'); // '/' removed 

it worked me.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -