<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class ParentCategory extends Model
{
    use HasFactory;
    protected $fillable = ['name', 'slug', 'position','image'];
    protected $table = 'parent_categories';

    public function category()
    {
        return $this->hasMany(Category::class, 'parent_category_id');
    }
}
