Fixed issues with Carbon instance and applied redirect to catalog rule index after applying rules
This commit is contained in:
parent
8744c84eb9
commit
0ea994502d
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue