Laravel 8重复路线名称

发布于 2025-02-04 17:42:20 字数 1201 浏览 3 评论 0原文

我不知道Laravel 8中的该路由发生了什么。

首先,我创建了一个使用name =&gt的路由。 'crm.merchant.klaim.list',当我尝试重定向到该路由名称时,Laravel的响应是404。然后,我使用php工匠路由从CLI检查:list,有关该路由名称的信息为crm.m.merchant.crm.crm.merchant.kair.klaim.list.list

我试图使用PHP工匠路线:CACHE然后PHP工匠缓存:clear,问题没有解决。

” 屏幕截图”>

Route::get('/merchant/klaim', 'Merchant\KlaimController@index')
    ->name('crm.merchant.klaim');

当我们尝试命令PHP手工艺途径时:列表返回应该下方下方,不是吗?

GET|HEAD | crm/merchant/merchant/klaim | crm.merchant.klaim | App\Http\Controllers\Merchant\KlaimController@index

但是输出是

GET|HEAD | crm/merchant/merchant/klaim | crm.merchant.crm.merchant.klaim | App\Http\Controllers\Merchant\KlaimController@index

任何人,请帮助我

I don't know what happened with this routing in Laravel 8.

First, I have created a route with name => 'crm.merchant.klaim.list' and when I try to redirect to that route name, the response from Laravel is 404. Then I checked from CLI using php artisan route:list and the information about that route name was crm.merchant.crm.merchant.klaim.list.

I was trying to use php artisan route:cache then php artisan cache:clear and the problem didn't resolve.

Screenshot from route:list

Screenshot from web.php

Route::get('/merchant/klaim', 'Merchant\KlaimController@index')
    ->name('crm.merchant.klaim');

when we try command php artisan route:list the return should be down below isn't it?

GET|HEAD | crm/merchant/merchant/klaim | crm.merchant.klaim | App\Http\Controllers\Merchant\KlaimController@index

but the output is

GET|HEAD | crm/merchant/merchant/klaim | crm.merchant.crm.merchant.klaim | App\Http\Controllers\Merchant\KlaimController@index

Anyone please help me

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文