php - Laravel 8路由重定向到空白页面
问题描述
我尝试了几种不同的方法,但都没有成功。我得到一个空白页。从控制器中删除记录后,我想重定向到页面。Laravel 文档这样说;https://laravel.com/docs/8.x/routing#redirect-routes
Route::redirect('/here', '/there');
我有这个
Route::redirect('customers', 'customer' );
我也试过这个,但得到这个错误 Route [customers] not defined。
return redirect()->route('customers');
我的 web.php 中的路线如下所示。
Route::get('/customers', [CustomersController::class, 'index']);
解决方案
推荐阅读
- html - 自定义复选框不正确
- java - 在另一个异步任务中执行异步任务
- android - Andriod Studio Gradle - 无法解析超过 2.24 的任何版本的匕首
- azure-active-directory - Azure AD 域服务域控制器的复制测试失败
- python - 安装numpy时的循环依赖
- javascript - 谷歌表格使用脚本检查单元格是否有边框
- c# - 我收到 Command find failed: Error=16500, RetryAfterMs=64, Error while Fetching Record Count in Azure Cosmos Db
- c# - 如何使用 Selenium 和 C# 单击此特定元素
- typescript - 在 Oclif CLI 中包含以空格分隔的参数
- javascript - 添加自定义 fa-icons 添加到 JsTree