简体   繁体   中英

my postman don't send data via post to restful api but others do (after installing passport)

I can't send my data via post method in postman. 1- my postman is a native app. 2- my routes are absolutely correct as you can see below. 3- I'm using API resource in api.php and when I send data with post store function didn't run.

enter image description here

enter image description here

in my controller everything is fine but every time I call the API index method ran. All of my routes have this problem, it looks like post data from my pc have been ignored.

thanks for your support.

Laravel sometimes has an issue with trailing slashes at the end of your URL.

Try removing it:

Change this:

AnurBuk.naeimsafaee.ir/api/author/

To this:

AnurBuk.naeimsafaee.ir/api/author

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM