title: Laravel 8: Function params must be an array
body: <p>I have a route that must get some parameters:</p>
  <p><code>Route::get('users/{function}/{param}/{feeLimit}/{callValue}/{bandwidthLimit}' , [TronController::class, 'totalUsers']);</code></p>
  <p>And the method <code>totalUsers</code> looks like this:</p>
  <p><code>public function totalUsers($function,$params,$feeLimit,$callValue,$bandwidthLimit){</code></p>
  <p>And in the browser, I call it like this:</p>
  <p><code>http://localhost:8000/users/totalUsers/array()/30000000/0/0</code></p>
  <p>But now I get this error:</p>
  <p><code>Function params must be an array</code></p>
  <p>I know this way of adding parameters is wrong, but I don't how to call the url and variables like this on the browser:</p>
  <pre><code>$function=&quot;totalUsers&quot;;
  $params=array();
  $feeLimit=30000000;
  $callValue = 0;
  $bandwidthLimit = 0;
  </code></pre>
  <p>How can I call <code>totalUsers</code> method properly with its parameters?</p>
  <h2>Update 1</h2>
  <p>In the method <code>totalUsers</code>:</p>
  <pre><code>try {
              $trigger = $TransactionBuilder-&gt;triggerSmartContract(
                  (array)$abi,
                  $contractH,
                  $function,
                  $params,
                  $feeLimit,
                  $addressH,
                  $callValue = 0,
                  $bandwidthLimit = 0);
              var_dump($trigger);
          } catch (\IEXBase\TronAPI\Exception\TronException $e) {
              die($e-&gt;getMessage());
          }
  </code></pre>