<?php

namespace App\Models;

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

class Dua extends Model
{
    use HasFactory;

    
    protected $fillable = [
        'title',
        'translation',
        'description',
        'image',
        'dua_category_id',
    ];

    // Relationship to DuaCategory
    public function category()
    {
        return $this->belongsTo(DuaCategory::class, 'dua_category_id');
    }
}
