GoalAdGroupGoalNegativeKeywordSharedSet.php 849 Bytes
<?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');
    }

}