Some values will only be known at run-time. Is it possible to use variables as query parameters in KoolReports? For example, in this example, how can I replace the raw value with a variable viz:
$val = 1.0825;
DB::table('orders')->selectRaw('price * ? as price_with_tax', [$val])
Or here,
<?php
use \koolreport\processes\Filter;
$val = 50;
class MyReport extends \koolreport\KoolReport
{
public function setup()
{
...
->pipe(new Filter(array(
array("region","=","asia"),
array("customerAge",">",$val)
)))
...
}
}
This doesn't seem to be possible and causing the challenge I have here. Or is there some other way to achieve this generally with the package?
Beginning to feel buyer's remorse...