<?php

namespace App\Models;

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

class NewsCategory extends ContentTypeModel
{
    use LanguageSupportTrait;
    use ThrowsIndexation;

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

    protected $casts = [];


    public function newsItems()
    {
        return $this->hasMany(NewsItem::class);
    }
}
