我有一个
routes.php
在我的插件目录中有很多路由规则的文件,例如其中的一部分是:
# global routes for buy and sell
Route::post('loadgroups/','Imis\Accounting\Controllers\SaleFactors@loadGroups');
Route::post('loadproducts/','Imis\Accounting\Controllers\SaleFactors@loadProducts');
Route::post('mobile/','Imis\Accounting\Controllers\SaleFactors@mobile');
Route::post('cashcredit/','Imis\Accounting\Controllers\SaleFactors@calcCashCredit');我的问题是所有的路线都正常工作,除了最后一条
404未找到
对这个问题有什么想法,如何解决!?谢谢。
发布于 2017-05-06 21:43:04
如果您确实定义了Controller方法,那么我唯一能想到的就是您可能是其他地方的POSTing。可能是打错了!?您可能需要查看您的表单(或您正在发出的帖子请求),以确保您到达了正确的路线。仔细研究StackTrace可能也会有帮助。
对于添加的度量,您可以清除缓存:php artisan cache:clear
希望你能找到解决办法。祝好运!
https://stackoverflow.com/questions/43692306
复制相似问题