title: trim() expects parameter 1 to be string, array given in laravel
body: <p>If I add this to api.php route I get this error</p>
  
  <pre><code> trim() expects parameter 1 to be string, array given in laravel     
   Route::get(['chapter/{chapter_id}/quiz' , 'API\QuizController@index']);
   Route::post(['chapter/{chapter_id}/quiz' , 'API\QuizController@store']);
   Route::put(['chapter/{chapter_id}/quiz/{id}' , 'API\QuizController@update']);
  </code></pre>
  
  <p>Error occurs in the line</p>
  
  <pre><code>protected function prefix($uri)
  {
      return trim(trim($this-&gt;getLastGroupPrefix(), '/').'/'.trim($uri, '/'), '/') ?: '/';
  }
  </code></pre>