Laravel 9 REST API CRUD (Create, Read, Update and Delete) with Upload image | json api

preview_player
Показать описание
Laravel 9 REST API CRUD (Create, Read, Update and Delete) with Upload image | json api
Рекомендации по теме
Комментарии
Автор

thank you I searched about this bug spent a lot of time and you are a savior dude

hadirizaldir
Автор

bro i was almost dying bcause i couldnt found how to make my update and delete work. thank you so much

amandapereira
Автор

In show method, you sent a name of the image and didn't send the image content.so how can i send the image completely?

basselsultan
Автор

Updating doesn't even work at all and I have absolutely 0 shadow of an Idea why, I followed literally the exact similar same you did and Postman seems like it literally can't read the request and returns null despite me very clearly inserting the "flag" element with it's image in the form-data, just what is wrong with it?

JohnSmith-cozv
Автор

to solve the update problem you have to replace the PUT method at the routes file and instead use POST, then at postman same thing, change the PUT method and use POST

winston