<?php

namespace App\Models;

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

class SubModule extends BaseModel
{
    use HasFactory;


    protected $fillable = [
        'module_id',
        'name',
        'slug',
        'image',
        'status',
    ];

    public function module()
    {
        return $this->belongsTo(Module::class, 'module_id', 'id');
    }
}
