<?php

namespace App\Models;

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

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


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

}
