<?php

namespace App\Models\Settings;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

class RoleMaterialType extends Model
{
	use SoftDeletes;
    protected $table='role_has_material_type';

    //protected $primaryKey = 'id';

    protected $fillable = ['material_type_id','role_id'];

    function role()
    {
        return $this->belongsTo('\App\Models\Settings\Roles','role_id','id');
    }
    function materialtype()
    {
        return $this->belongsTo('\App\Models\Settings\MaterialType','material_type_id','id');
    }
}
