[请益] post上传请求失败……

楼主: NealPope (尼尔教皇)   2021-07-25 01:43:41
https://i.imgur.com/viKPYZf.jpg
我的网站有颗按钮要"储存"
但都请求失败404...
web.php
https://i.imgur.com/sRcbkE3.jpg
base_modal.blade.php
https://i.imgur.com/NFtQ87L.jpg
然后我只是想按下储存后先show文字 "储存新资料"
https://i.imgur.com/crprpIK.jpg
一直显示
Not Found
The requested URL was not found on this server.
大大们求解...我是刚踏入的新手QQ
作者: bakedgrass (蒙古烤小草)   2021-07-25 03:09:00
你要不要先检查一下HTML,看看form的action指向哪里?
作者: youshallnotp (ass)   2021-07-25 04:12:00
应该是form的action没对到正确的地方Route::post(uri: 'urt',[Controller::class, Controller method])->name( name:url.post');<form action="{{route(url.post)}}" </form>我个人是会先命名route然后这样呼叫
楼主: NealPope (尼尔教皇)   2021-07-25 10:54:00
各位前辈厉害,判断都正确!谢谢,我基础尚未扎实抱歉……已解决

Links booklink

Contact Us: admin [ a t ] ucptt.com