mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Costometic cleanup
This commit is contained in:
parent
0962d770cf
commit
3aa7c60765
|
@ -36,7 +36,7 @@ class Actionlog extends Model implements ICompanyableChild
|
||||||
|
|
||||||
public function itemType()
|
public function itemType()
|
||||||
{
|
{
|
||||||
// dd($this);
|
|
||||||
if($this->item_type == AssetModel::class) {
|
if($this->item_type == AssetModel::class) {
|
||||||
return "model";
|
return "model";
|
||||||
}
|
}
|
||||||
|
@ -45,7 +45,6 @@ class Actionlog extends Model implements ICompanyableChild
|
||||||
|
|
||||||
public function uploads()
|
public function uploads()
|
||||||
{
|
{
|
||||||
|
|
||||||
return $this->morphTo('item')
|
return $this->morphTo('item')
|
||||||
->where('action_type', '=', 'uploaded')
|
->where('action_type', '=', 'uploaded')
|
||||||
->withTrashed();
|
->withTrashed();
|
||||||
|
|
Loading…
Reference in a new issue