<?php

class Language extends BaseModel
{
    public $incrementing = false;
    protected $guarded = array();
    public $timestamps = false;

    public function websites()
    {
        return $this->belongsToMany('Website', 'website_language')->withPivot("is_default");
    }


    public function searches()
    {
        return $this->belongsToMany('WebsiteObject', "website_object_search")
            ->withPivot("primary_search", "secondary_search");
    }

}
