Skip to content

Commit 2f22dca

Browse files
author
Brian Dillingham
authored
Add withParams for viaRelationship etc support
2 parents 4b33f43 + 9ab54c8 commit 2f22dca

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/Button.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,19 @@ public function route($name, $params)
273273
return $this;
274274
}
275275

276+
/**
277+
* Add params to route
278+
*
279+
* @param array $params
280+
* @return $this
281+
*/
282+
public function withParams(array $params)
283+
{
284+
$this->route['query'] = array_merge($this->route['query'], $params);
285+
286+
return $this;
287+
}
288+
276289
/**
277290
* Add filters to index view.
278291
*

0 commit comments

Comments
 (0)