<?php

namespace Yajny\Models;

use Illuminate\Database\Eloquent\Model;
use Spatie\Translatable\HasTranslations;
use Yajny\Traits\SelectTranslations;

class Footer extends Model
{
    use HasTranslations,SelectTranslations;

    protected $table = 'footer';
    protected $primaryKey = 'id';
    public $translatable = ['title'];
    public  $selColmns = ['id', 'title', 'footer_type', 'footer_value', 'sort_order'];

    public function sections()
    {
        return $this->hasMany(Section::class, 'pageID', 'pageID');
    }



}
