<a href="@{{ post.user.profileUrl }}">@ {{ post.user.name }}</a>
是创造错误的行,它应该是链接到用户NotFoundHttpException在RouteCollection.php线161,而试图点击一个链接在laravel 5.2
简单地做
的轮廓<h2>@{{ post.user.profileUrl }}</h2>
被给予正确的地址,并输入指出地址也带我到正确的页面,但该链接它给错误
航线文件
Route::get('/', function() {
return view('auth/login');
});
Route::auth();
Route::get('/home', '[email protected]');
Route::post('/posts', '[email protected]');
Route::get('users/{user}', '[email protected]')->name('user.index');
任何人都请帮助...
请出示您的路线文件! –
您仍然需要在{{}}中使用php语法。后者基本上只是一个回声语句(包裹在字符转义函数中)。 – devk
@SaumyaRastogi路由列表已更新,请查看 – Ronit