src/Models/CampaignOpen.php 1 location
|
@@ 8-21 (lines=14) @@
|
5 |
|
use Illuminate\Database\Eloquent\Model; |
6 |
|
use Illuminate\Database\Eloquent\Relations\BelongsTo; |
7 |
|
|
8 |
|
class CampaignOpen extends Model |
9 |
|
{ |
10 |
|
protected $guarded = []; |
11 |
|
|
12 |
|
public function campaign(): BelongsTo |
13 |
|
{ |
14 |
|
return $this->belongsTo(Campaign::class, 'email_campaign_id'); |
15 |
|
} |
16 |
|
|
17 |
|
public function subscriber(): BelongsTo |
18 |
|
{ |
19 |
|
return $this->belongsTo(Subscriber::class, 'email_list_subscriber_id'); |
20 |
|
} |
21 |
|
} |
22 |
|
|
src/Models/CampaignUnsubscribe.php 1 location
|
@@ 8-21 (lines=14) @@
|
5 |
|
use Illuminate\Database\Eloquent\Model; |
6 |
|
use Illuminate\Database\Eloquent\Relations\BelongsTo; |
7 |
|
|
8 |
|
class CampaignUnsubscribe extends Model |
9 |
|
{ |
10 |
|
protected $guarded = []; |
11 |
|
|
12 |
|
public function campaign(): BelongsTo |
13 |
|
{ |
14 |
|
return $this->belongsTo(Campaign::class, 'email_campaign_id'); |
15 |
|
} |
16 |
|
|
17 |
|
public function subscriber(): BelongsTo |
18 |
|
{ |
19 |
|
return $this->belongsTo(Subscriber::class, 'email_list_subscriber_id'); |
20 |
|
} |
21 |
|
} |
22 |
|
|