GoalAdGroupGoalNegativeKeywordSharedSet.php
849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
namespace App\Models\Pivots;
use Illuminate\Database\Eloquent\Relations\Pivot;
class GoalAdGroupGoalNegativeKeywordSharedSet extends Pivot
{
protected $table = 'goal_ad_group_goal_negative_keyword_shared_sets';
protected $fillable = [
'goal_ad_group_id',
'goal_negative_keyword_shared_set_id',
];
public $incrementing = true;
static public function getWithPivot()
{
return [
'id',
'goal_ad_group_id',
'goal_negative_keyword_shared_set_id',
];
}
public function goalAdGroup()
{
return $this->belongsTo(GoalAdGroup::class, 'goal_ad_group_id');
}
public function goalNegativeKeywordSharedSet()
{
return $this->belongsTo(GoalNegativeKeywordSharedSet::class, 'goal_negative_keyword_shared_set_id');
}
}