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.

Reply to

Use Markdown with GitHub-flavored code blocks.