<?php

namespace App\Models\GenericBackoffice;

use App\Libs\Database\Eloquent\ContentTypeModel;
use App\Models\GenericBackoffice\Traits\LanguageSupportTrait;

class Footer extends ContentTypeModel
{
    use LanguageSupportTrait;

    protected $table = 'footer';

    protected $hidden = ['languages', "websites"];
    protected $with = ['languages', "websites"];

    protected $dates = []; // dates

    public function socialMedias()
    {
        return $this->belongsToMany(SocialMedia::class, 'footer_social_media')->withPivot('position');
    }
}
