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

class Troute extends Model
{
     protected $fillable = ['id','subject_id','routename','froutename','user_id','file_group_id','updated_by','office_id'];
     protected $table='troutes';

	function subject()
	{
		return $this->belongsTo('\App\Subject','subject_id');
	}
	function user()
	{
		return $this->belongsTo('\App\User','user_id');
	}
	function file_group()
	{
		return $this->belongsTo('\App\File_Group','file_group_id');
	}
	function office()
    {
    	return $this->belongsTo('\App\Office','office_id');
    }
}
