Hello I am new to laravel and am currently going through the laravel from scractch series. I am currently stuck on this error and cannot figure out what is going on:
MethodNotAllowedHttpException ln 251
in RouteCollection.php line 251
at RouteCollection->methodNotAllowed(array('GET', 'HEAD')) in RouteCollection.php line 238
Project URL: http://localhost/blog/public
HTML:
Route: Route::POST('comments', 'CommentsController@store');
I am going from http://localhost/blog/public/posts to http://localhost/blog/public/posts/comments
route:list shows that it is indeed a POSt metho on URI comments.
Also, does anyone have valuable tips on how to debug such issues these errors seem to be so vague to me?
I am using PHPconsole and firebug and those don't seem to be much help at this point. I have also enabled debug logging am not getting much help from that.
Thanks!
EDIT:: So i've figured it out after some time. although my action="comments" whats actually getting passed to my routes is "post/comments".
Which leads me to another question: how can i determine what actually gets passed to my routes?