Try debugging it using dd(); to see at which point you are getting this problem.
Also try adding
@method("POST")
in the form to indicate that it is a POST request. See if the request you are submitting is sending the same data or not.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Edit: The problem arises when typing ( inside the form text input ) the src attribute with any tag or any attribute with img tab.
I have this very simple form in posts\create.blade.php
<form action="http://example.com/posts" method="POST">
@csrf
<input type="text" name="title">
<input type="submit" value="SUBMIT">
</form>
and this route in web.php
Route::resource('posts','PostController');
When I enter some text in the text input field named title and submit the form, it submits to the correct method PostController@store since a POST request to http://example.com/events leads to the store() method in a resource controller. It also submits just fine when I enter html tags in the input for e.g <a href=''> or <p> and others. However, if I use the img tag (or any madeup tag) with the src attribute, and JUST this one particular attribute, Laravel doesn't care about the specified request verb i.e POST in this case, and instead submits it using the GET verb which leads to the index() method of the controller.
Cases for different inputs in <input type='text' name='title'>
<a href=''> -- submits with post to store() -> correct!
<p>hello</p> -- submits with post to store() -> correct!
<h2>World</h2> -- submits with post to store() -> correct!
<a href="http://example.com/admin/tests"></a> -- submits with post to store() -> correct!
<img> -- submits with post to store() -> correct!
<src=''> -- submits with post to store() -> correct!
<img src=''> -- submits with GET to index() -> INcorrect!
<gibberish src=''> -- submits with GET to index() -> INcorrect!
P.s: this is happening on a live website on a shared hosting.
After a lot of trial and error, I have concluded, this is unsolvable. Good luck to anyone who stumbles upon this, you are doomed.
Please or to participate in this conversation.