Added assets method

This commit is contained in:
snipe 2016-05-24 16:06:22 -07:00
parent abf027059f
commit cde0d49e18

View file

@ -28,6 +28,11 @@ class Statuslabel extends Model
return $this->hasMany('\App\Models\Asset', 'status_id')->count();
}
public function assets()
{
return $this->hasMany('\App\Models\Asset', 'status_id');
}
public function getStatuslabelType()
{