[英]Route 404 error Laravel
I'm experiencing an error I don't quite understand. 我遇到了一个我不太了解的错误。 The route seems to be working fine on my development machine(which is windows 10, php 7) but gives 404 error on shared linux hosting.
该路由似乎在我的开发机器(Windows 10,PHP 7)上正常运行,但在共享Linux托管上却出现404错误。
Below is the code: 下面是代码:
The route 路线
Auth::routes();
Route::get('/curries','CurriessController@index')->name('curries');
Route::resource('/curries','CurriesController');
The Link 链接
<td><a href="/curries/{{$curry->id}}"> {{$curry->curry_title}}</a></td>
I also tried route('curry.index', $curry->id
我也尝试过
route('curry.index', $curry->id
What makes no sense to me is that it works on windows but the 404 on linux. 对我来说没有意义的是它可以在Windows上运行,但可以在Linux上运行404。 Please assist
请协助
<td><a href="{{route('curries.index')}}/{{$curry->id}}">Type of Curry</a></td>
<td><a href="{{route('curries.index')}}/{{$curry->id}}">Type of Curry</a></td>
This should work 这应该工作
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.