Skip to content

Commit 9ab54c8

Browse files
author
Yannik
authored
ADDED - custom params to route
1 parent d7547cc commit 9ab54c8

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)