diff --git a/app/Observers/ProductObserver.php b/app/Observers/ProductObserver.php index 70e8696..471e9c9 100755 --- a/app/Observers/ProductObserver.php +++ b/app/Observers/ProductObserver.php @@ -10,7 +10,7 @@ class ProductObserver // public function updated(Product $product){ \Log::info('product update'); - if ($product->wasChanged('price') && $p->price != null){ + if ($product->wasChanged('price')){ \Log::info('product price update'); $p = new Price(); $p->product_id = $product->id;