0
Error
Symfony Component Httpkernel Exception Methodnotallowedhttpexception
No message
Method in the Controller
class GuzzleController extends Controller
{
public function post(Request $request){
$email = $request->input('email');
$senha = $request->input('senha');
dd($email,$senha);
}
web php.
Route::get('/post', 'GuzzleController@post');
index php.
Note: here I get lost
<body>
<form action="/post" method="POST">
E-mail: <input type="text" name="email"><br>
senha: <input type="text" name="senha"><br>
<input type="submit">
</form>
</body>
Because you are editing your index.php?
– gmsantos
I don’t understand your question
– Luska Zimmermann
Your view is called
ìndex.php
? It is inside the public folder that html ?– gmsantos
No, it’s just a name I’ve defaulted to, within Resources views index.blade.php
– Luska Zimmermann
when I call the
método
la nocontroller
and I try to get the data of the form it gives this error ,Symfony \ Component \ HttpKernel \ Exception \ MethodNotAllowedHttpException
No message
– Luska Zimmermann
Change your route to post: Route::post
– Diego Vieira
@diegoViera opa , I changed and changed the error now this
The page has expired due to inactivity. 

Please refresh and try again.
I have already closed everything and opened again , I have restarted the server– Luska Zimmermann
Isn’t one missing
}
to close thefunction
post
in theGuzzleController
?– Barbetta