<?php

class NotableTemplateConfiguration extends ContentTypeModel
{
    use LanguageSupportTrait;

    protected $hidden = array('languages', "websites");
    protected $with = array("websites", "languages");

    public function sidebarWidgets()
    {
        return $this->belongsToMany('SidebarWidget', 'notable_template_sb_widgets');
    }

    public function publicSidebarWidgets()
    {
        return $this->belongsToMany('SidebarWidget', 'notable_template_public_sb_widgets');
    }

    public function corporateSidebarWidgets()
    {
        return $this->belongsToMany('SidebarWidget', 'notable_template_corporate_sb_widgets');
    }
}
