404 Not found with laravel 6

前端 未结 1 349
-上瘾入骨i
-上瘾入骨i 2020-12-22 07:47

i have a problem while passing a variable into the URL , the route exists but still 404 NOT FOUND , This is the form :

ID}
相关标签:
1条回答
  • 2020-12-22 07:52

    I have two observations:

    First, I can see that your form action is "/rdv_{{$go->ID}}". I think it should be "/rdv/{{$go->ID}}" instead. Note that I changed the '_' to '/'.

    Second, I think you should also change your route to this (Note that I changed the '_' to '/'):

    Route::post('/rdv/{ID}','rendezv@rdv');
    

    Hope that solves the problem.

    Regards.

    0 讨论(0)
提交回复
热议问题