Removed unusued relationship

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2025-06-14 16:37:44 +01:00
parent 090399b336
commit 0a4a6e7ba3

View File

@@ -166,20 +166,7 @@ class AssetMaintenance extends Model implements ICompanyableChild
return $this->belongsTo(\App\Models\Asset::class, 'asset_id')
->withTrashed();
}
/**
* asset
* Get asset for this improvement
*
* @return mixed
* @author Vincent Sposato <vincent.sposato@gmail.com>
* @version v1.0
*/
public function assets()
{
return $this->hasMany(Asset::class, 'asset_id')
->withTrashed();
}
/**
* Get the admin who created the maintenance