mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
service templates - move to blade -wip
This commit is contained in:
@@ -31,17 +31,10 @@ class ServiceTemplate extends Model implements Keyable
|
||||
return $this->id . '-' . $this->device_group_id;
|
||||
}
|
||||
|
||||
// ---- Query Scopes ----
|
||||
/**
|
||||
* Update the device groups for the given device or device_id
|
||||
*
|
||||
* @param ServiceTemplate|int $id
|
||||
* @return array
|
||||
*/
|
||||
public static function getServiceTemplate($id, User $user)
|
||||
public static function getServiceTemplate($query)
|
||||
{
|
||||
return $id->where([
|
||||
['id', '=', $id],
|
||||
return $query->where([
|
||||
['id', '=', $query],
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user