0
I already looked at the gringo stackoverflow and nothing. I tried to add @csrf and all the other solutions presented as clearing the route for example. What happens is that the error persists.
Web Route:
Route::get('/', function () {
return view('welcome');
});
Route::post('authentication', 'Login@authentication');
Form:
<form action="authentication" method="post">
@csrf
<label for="name">Nome:</label>
<input type="text" name="name" id="name">
<label for="password">Senha:</label>
<input type="password" name="password" id="password">
<input type="submit" value="enviar">
</form>
Controller
class Login extends Controller
{
public function authentication()
{
return 'true';
}
}
What’s the mistake????
– novic
title. It is not accepting the post in the form
– carlos henrique