Divyesh, thanks for reading! I see I forgot to add something in this tutorial. Make sure your form has a POST method:
<form action=”addpost” method=”POST”>

And make sure the action matches the name of the route correctly.

Thanks for catching this, I updated the tutorial.

If you’d like to learn more about the difference between POST and GET routes I recommend going here: https://www.diffen.com/difference/GET-vs-POST-HTTP-Requests

Programmer — Writer. @andyhartnett12

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store