laravel - Laravel 页面重定向显示 404 错误
问题描述
web.php 路线是
Route::get('/profile', [App\Http\Controllers\HomeController::class,'profile'])->name('profile');
在 HomeController 函数中
public function profile()
{
return view('profile');
}
并且 profile.blade.php 文件也存在。当尝试加载http://127.0.0.1:8000/profile链接返回 404 错误。
解决方案
推荐阅读
- javascript - 响应正文为空(获取请求)
- c++ - 由于缺少类模板而导致编译面向对象代码的 nvcc 问题
- c - c中的“并非所有控制路径都返回一个值”,分数判别
- swift - 使用未解析的标识符“OAuthProvider”
- javascript - 重定向不适用于单个组件中的 react-router
- ios - 找不到框架 Protobuf
- android - 改变了 stopLockTask 的行为?
- python - 来自 R / Python 中的数据帧的波周期子集列表(波从 0 -> 正峰值 -> 0 -> 负峰值 -> 0 进展)
- angular - Angular 指令 - 只有数字和 2 位小数,逗号分隔
- c# - 如何使用 OpenXML dll 在 Excel 中读取合并单元格的数据