Skip to content

Commit

Permalink
Add withParams for viaRelationship etc support
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Dillingham committed Aug 18, 2019
2 parents 4b33f43 + 9ab54c8 commit 2f22dca
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Button.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,19 @@ public function route($name, $params)
return $this;
}

/**
* Add params to route
*
* @param array $params
* @return $this
*/
public function withParams(array $params)
{
$this->route['query'] = array_merge($this->route['query'], $params);

return $this;
}

/**
* Add filters to index view.
*
Expand Down

0 comments on commit 2f22dca

Please sign in to comment.