cipsas

Route issue

Posted 3 years ago by cipsas

Hi,

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                        | api.pages.store   

I try to make post request with vue-resource:

var resource = this.$resource('/api/pages/:id');
resource.save({page: this.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

Channels

Reply to

Use Markdown with GitHub-flavored code blocks.