attribute update event for product flat is suppressed for now as code and type never gets changed when updating the attribute

This commit is contained in:
Prashant Singh 2019-01-18 18:56:46 +05:30
parent 14dfec8365
commit 66c74af6ca
3 changed files with 3 additions and 3 deletions

View File

@ -118,7 +118,7 @@ class AttributeController extends Controller
$attribute = $this->attribute->update(request()->all(), $id);
Event::fire('after.attribute.updated', $attribute);
// Event::fire('after.attribute.updated', $attribute);
session()->flash('success', 'Attribute updated successfully.');

View File

@ -71,7 +71,7 @@ class ProductsFlat
*/
public function afterAttributeUpdated($attribute)
{
dd($attribute);
return true;
}
public function afterAttributeDeleted($attribute)

View File

@ -14,7 +14,7 @@ class EventServiceProvider extends ServiceProvider
*/
public function boot()
{
Event::listen('after.attribute.updated', 'Webkul\Product\Listeners\ProductsFlat@afterAttributeUpdated');
// Event::listen('after.attribute.updated', 'Webkul\Product\Listeners\ProductsFlat@afterAttributeUpdated');
Event::listen('after.attribute.created', 'Webkul\Product\Listeners\ProductsFlat@afterAttributeCreated');