mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 14:27:33 -08:00
Added assets method
This commit is contained in:
parent
abf027059f
commit
cde0d49e18
|
@ -28,6 +28,11 @@ class Statuslabel extends Model
|
||||||
return $this->hasMany('\App\Models\Asset', 'status_id')->count();
|
return $this->hasMany('\App\Models\Asset', 'status_id')->count();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function assets()
|
||||||
|
{
|
||||||
|
return $this->hasMany('\App\Models\Asset', 'status_id');
|
||||||
|
}
|
||||||
|
|
||||||
public function getStatuslabelType()
|
public function getStatuslabelType()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue