<?php

namespace App\Models;

use App\Models\Traits\LanguageSupportTrait;

class JobOffer extends ContentTypeModel
{
    use LanguageSupportTrait;

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

    public function document()
    {
        return $this->belongsTo(MediaItem::class);
    }

    public function office()
    {
        return $this->belongsTo(Office::class);
    }

    public function offices()
    {
        return $this->belongsToMany(Office::class);
    }
}
