Laravel 8重复路线名称
我不知道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.
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论