InfyOmLabs / laravel-generator

API and Admin Panel CRUD Generator for Laravel.
https://www.infyom.com/open-source
MIT License
3.78k stars 802 forks source link

Edit not working in generated api #962

Closed sbn111 closed 3 years ago

sbn111 commented 3 years ago

Hi sir,

I was generated api using php artisan infyom:api member command.

And the command successfull. Add, delete, get and list is working properly.

But edit is not working. Kindly help to solve the issue and let me know if I done anything wrong.

I am using laravel version 7 and infyom laravel generator version 7.

I tried it in postman, Received the following error, I created api with only two column name and email. In that name is required field. Check the screenshot - Click to see screenshot

It showing the name field is required error response, But the name field is already filled. If I remove required for name column, It just returning the data like get request, but not updated

Waiting for your reply

Hope explained clearly

Thank you

shailesh-ladumor commented 3 years ago

@sbn111 i think you trying with form data. Please try with row and pass json in put request from postman. See example here https://images.app.goo.gl/DF2YZQ4eKWZbYaPK7

sbn111 commented 3 years ago

@sbn111 i think you trying with form data. Please try with row and pass json in put request from postman. See example here https://images.app.goo.gl/DF2YZQ4eKWZbYaPK7

Thank you it worked. Really appreciate your quick response. I starting to see your youtube videos