Route issue

Posted 3 years ago by cipsas


when I try to make post request, somehow it goes to index method instead post method. When I check: php artisan route:list

POST                           | api/pages                        |   

I try to make post request with vue-resource:

var resource = this.$resource('/api/pages/:id');{page:} , function (data, status, request) {});

and try to test with chrome app POSTMAN, and get the same result.

Any ideas what could be wrong?

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up


Reply to

Use Markdown with GitHub-flavored code blocks.