<?php

namespace App\Model;

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

class Medium extends Model {

    use SoftDeletes;
	
	protected $table = "mediums";

    protected $fillable = [
        'name','status',
    ];
	
	public function standard()
	{
        return $this->hasMany('App\Model\Standard','medium_id')->where('status','Active')->withTrashed();
    }
}
