<?php

namespace App\Models\LibrarySetting;

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

class LibraryStreamSubject extends Model
{
    use HasFactory,SoftDeletes;
    protected $primaryKey = "id";
    protected $fillable = ['library_stream_id',
                            'subject',
                            'status'
                          ];
    public function getStreamName()
    {
      return $this->hasOne(Stream::class,'id','library_stream_id');
    }
}
