this makes possible adding extra attributes to models
This commit is contained in:
24
app/Events/Common/ModelCreated.php
Normal file
24
app/Events/Common/ModelCreated.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Common;
|
||||
|
||||
use App\Abstracts\Event;
|
||||
|
||||
class ModelCreated extends Event
|
||||
{
|
||||
public $model;
|
||||
|
||||
public $attributes;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param $model
|
||||
* @param $attributes
|
||||
*/
|
||||
public function __construct($model, $attributes)
|
||||
{
|
||||
$this->model = $model;
|
||||
$this->attributes = $attributes;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user