0

我有一个

路由.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 未找到

有没有关于这个问题的想法以及如何解决它!?谢谢你。

4

1 回答 1

1

如果您确实定义了 Controller 方法,那么我唯一能想到的就是您可能正在其他地方发布。可能是笔误!?您可能想查看您的表单(或者您正在发出 POST 请求)以确保您选择了正确的路线。仔细查看 StackTrace 也可能会有所帮助。

为了增加措施,您可以清除缓存:php artisan cache:clear

希望你能找到解决办法。祝你好运!

于 2017-05-06T21:43:04.323 回答