From 25e485274e2c54a58e046321537bfab5ba9f3bbe Mon Sep 17 00:00:00 2001 From: Prashant Singh Date: Thu, 17 Jan 2019 11:59:51 +0530 Subject: [PATCH] read me changes --- README.md | 8 ++++---- .../Webkul/Admin/src/Providers/EventServiceProvider.php | 2 ++ .../src/Http/Controllers/AttributeController.php | 2 ++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index dda9a03a3..df65b6173 100755 --- a/README.md +++ b/README.md @@ -11,15 +11,15 @@

# Topics -1. ### Introduction -2. ### Requirements +1. ### Introduction +2. ### Requirements 3. ### Installation 4. ### Configuration 5. ### Migration Guides 6. ### License -### 1. Introduction: +### 1. [link](#intro)Introduction: [Bagisto](https://www.bagisto.com) is a hand tailored E-Commerce framework designed on some of the hottest opensource technologies such as [Laravel](https://laravel.com) a [PHP](https://secure.php.net/) framework, [Vue.js](https://vuejs.org) @@ -129,7 +129,7 @@ password:admin123 ## Contributors -This project exists thanks to all the people who contribute. +This project exists thanks to all the people who contribute. diff --git a/packages/Webkul/Admin/src/Providers/EventServiceProvider.php b/packages/Webkul/Admin/src/Providers/EventServiceProvider.php index c869411b4..e0d91e87a 100755 --- a/packages/Webkul/Admin/src/Providers/EventServiceProvider.php +++ b/packages/Webkul/Admin/src/Providers/EventServiceProvider.php @@ -27,5 +27,7 @@ class EventServiceProvider extends ServiceProvider Event::listen('catalog.product.create.after', 'Webkul\Admin\Listeners\Product@afterProductCreated'); Event::listen('catalog.product.update.after', 'Webkul\Admin\Listeners\Product@afterProductUpdate'); + + Event::listen('after.attribute.update', 'Webkul\Admin\Listeners\Product@updateColumnBasedOnAttribute'); } } \ No newline at end of file diff --git a/packages/Webkul/Attribute/src/Http/Controllers/AttributeController.php b/packages/Webkul/Attribute/src/Http/Controllers/AttributeController.php index 6bb067481..6a9355caf 100755 --- a/packages/Webkul/Attribute/src/Http/Controllers/AttributeController.php +++ b/packages/Webkul/Attribute/src/Http/Controllers/AttributeController.php @@ -112,6 +112,8 @@ class AttributeController extends Controller $attribute = $this->attribute->update(request()->all(), $id); + Event::fire('after.attribute.update', $attribute); + session()->flash('success', 'Attribute updated successfully.'); return redirect()->route($this->_config['redirect']);