[請益] ajax出現500 (Internal Server Error)已刪文

看板PHP作者 (尼爾教皇)時間2年前 (2021/07/27 23:44), 編輯推噓0(004)
留言4則, 1人參與, 2年前最新討論串1/1
https://i.imgur.com/fUDQBAR.jpg
https://i.imgur.com/JLe9XpJ.jpg
https://i.imgur.com/9NaTqrJ.jpg
Module https://i.imgur.com/GwmUp4E.jpg
Route https://i.imgur.com/b5XKwRM.jpg
Controller https://i.imgur.com/rnRqVZk.jpg
我想練習ajax套用前端的方法 去跟Laravel做結合 按刪除的時候傳資料到後台刪除 可是出現500 internal server error 求大大幫忙… -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 111.83.19.158 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/PHP/M.1627400677.A.43B.html

07/27 23:54, 2年前 , 1F
call to undefined method Title::destory()
07/27 23:54, 1F

07/27 23:55, 2年前 , 2F
Title Model 看起來沒有 destory method
07/27 23:55, 2F

07/27 23:57, 2年前 , 3F
第三張圖的 error 是因為直接用瀏覽器開那個僅支援
07/27 23:57, 3F

07/27 23:58, 2年前 , 4F
patch / delete 的 endpoint 造成的
07/27 23:58, 4F
文章代碼(AID): #1X02dbGx (PHP)