Skip to content

Commit 69f0527

Browse files
Allow events to be configurable through config
1 parent e378701 commit 69f0527

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Models/Interest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ class Interest extends Model
1313
*/
1414
protected $table;
1515

16+
/**
17+
* The event map for the model.
18+
*
19+
* @var array
20+
*/
21+
protected $dispatchesEvents;
22+
1623
/**
1724
* The attributes that are mass assignable.
1825
*
@@ -37,6 +44,8 @@ class Interest extends Model
3744
*/
3845
public function __construct(array $attributes = [])
3946
{
47+
$this->dispatchesEvents = config('exponent-push-notifications.interests.database.events');
48+
4049
$this->table = config('exponent-push-notifications.interests.database.table_name');
4150

4251
parent::__construct($attributes);

0 commit comments

Comments
 (0)