I have a
routes.php
file in my plugin directory that has lots of routing rules for example a part of it is:
# 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');
my problem is that all the routes working correctly except the last one which throws
404 not found
is there any idea about this problem and how to solve it!? Thank you.