button code
<button type="submit" name="_token" value="<?php echo csrf_token(); ?>" href="{{route('regi') }}" class="btn">Sign up!</button>
route
Route::get('regi', array('as' => 'regi', 'uses' => function()
{
return view('register');
}));
error
in RouteCollection.php line 219
at RouteCollection->methodNotAllowed(array('GET', 'HEAD')) in RouteCollection.php line 206
at RouteCollection->getRouteForMethods(object(Request), array('GET', 'HEAD')) in RouteCollection.php line 158
I'm new to Laravel.So I can not figure out error.Please help me.Thanks in advance.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire