<?php

namespace App\Models;

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

class HadithCategory extends Model
{
    use HasFactory;

    protected $fillable = [
        'name',
        'description',
    ];

    // Relationship to Hadees
    public function hadiths()
    {
        return $this->hasMany(Hadees::class, 'hadith_category_id');
    }
}
