first upload all files
This commit is contained in:
27
Modules/Product/Events/ProductViewed.php
Normal file
27
Modules/Product/Events/ProductViewed.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Product\Events;
|
||||
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class ProductViewed
|
||||
{
|
||||
use SerializesModels;
|
||||
|
||||
/**
|
||||
* The product entity.
|
||||
*
|
||||
* @var \Modules\Product\Entities\Product
|
||||
*/
|
||||
public $product;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($product)
|
||||
{
|
||||
$this->product = $product;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user