This is the content of the laravel routes file (web.php)
Route::prefix('compra')->group(function () {
Route::get('usuario', 'FrontControllerCompras@pideUsuario');
Route::post('consulta-usuario', 'FrontControllerCompras@consultaUsuario');
});
I have a problem with a form in a blade template. I want to send the form to a post route like the one I put in the form and that I have created in the routes file. My form is;
{!! Form::open(['route' => 'compra.consulta-usuario', 'method' => 'POST']) !!}
The url of the form is: link
The error I get when loading the page is:
Route [purchase.consulta-user] not defined