<?php
namespace App;
use Illuminate\Database\Eloquent\Model;

class Subjectgroup_subject extends Model
{
    protected $fillable = ['subject_group_id','subject_id','updated_by','office_id'];
    protected $table='subjectgroup_subject';

    function subject_group()
    {
    	return $this->belongsTo('\App\Subject_Group','subject_group_id');
    }

    function subject()
    {
    	return $this->belongsTo('\App\Subject','subject_id');
    }

    function office()
    {
        return $this->belongsTo('\App\Office','office_id');
    }
}
