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