route()->parameter('node'); $allocation = $this->route()->parameter('allocation'); if ($node instanceof Node && $node->exists) { if ($allocation instanceof Allocation && $allocation->exists && $allocation->node_id === $node->id) { return true; } } return false; } }