【发布时间】:2018-04-13 07:16:01
【问题描述】:
在路线代码下方的鳍。
Route::get('clientlayout.main.index','InvoiceTicketController@show');
Route::get('clientlayout.main.mydomains','InvoiceTicketController@set');
当我运行这些路由时,我得到的 url 为
http://localhost:8000/clientlayout.main.index 和 http://localhost:8000/clientlayout.main.mydomains。
我希望我的 Url 更改如下:http://localhost:8000/index 和 http://localhost:8000/mydomains。
建议我更改路线以纠正此问题的解决方案。
【问题讨论】:
-
使用
Route::get('/index','InvoiceTicketController@show');和Route::get('/mydomains','InvoiceTicketController@set');代替您的路线
标签: laravel laravel-5 laravel-4 laravel-5.2 laravel-5.3