Fixed issues with Carbon instance and applied redirect to catalog rule index after applying rules

This commit is contained in:
Prashant Singh 2019-08-20 11:46:20 +05:30
parent 8744c84eb9
commit 0ea994502d
3 changed files with 7 additions and 3 deletions

View File

@ -9,8 +9,8 @@ use Webkul\Core\Repositories\SliderRepository as Slider;
/**
* Slider controller for managing the slider controls.
*
* @author Prashant Singh <prashant.singh852@webkul.com> @prashant-webkul
* @copyright 2018 Webkul Software Pvt Ltd (http://www.webkul.com)
* @author Prashant Singh <prashant.singh852@webkul.com> @prashant-webkul
* @copyright 2018 Webkul Software Pvt Ltd (http://www.webkul.com)
*/
class SliderController extends Controller
{

View File

@ -3,7 +3,7 @@
namespace Webkul\Discount\Helpers\Catalog;
use Webkul\Discount\Repositories\CatalogRepository as CatalogRule;
use Webkul\Discount\Helpers\Catalog\ConvertXToProductId;
use Carbon\Carbon;
/**
* Sale - Abstract class designed to initiate the application of Catalog Rules

View File

@ -358,6 +358,10 @@ class CatalogRuleController extends Controller
public function applyRules()
{
$this->sale->apply();
session()->flash('success', 'Rules processing done');
return redirect()->route('admin.catalog-rule.index');
}
/**