Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
object_type = __class__;
});
static::saving(function ($model) {
$model->object_type = __class__;
});
static::addGlobalScope('object_type', function ($builder) {
$builder->where('object_type', '=', __class__);
});
}
public function campaign()
{
return $this->belongsTo(__NAMESPACE__.'\Campaign', 'object_id', 'id');
}
public function emails()
{
return $this->hasMany(__NAMESPACE__.'\CampaignEmail', 'email_subject_id', 'id');
}
}