<?php

namespace App\Models;

use App\Traits\Description;
use App\Traits\Image;
use App\Traits\Slug;
use App\Traits\Title;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;

class MenuCategory extends Model
{
    use HasFactory,Slug,Description,Image,Title;

    protected $fillable =[
        'menu_parent',
        'slug',
        'menu_category_az',
        'menu_category_ru',
        'menu_category_en',
        'image',
        'show_in_main',
        'option',
        'position',
        'number'
    ];

    public function menyus(): HasMany
    {
        return $this->hasMany(Menyu::class, 'category_id');
    }


}
