title: Laravel - ErrorException : Array to string conversion
body: <p>I have a problem in this code in Laravel when using php artisan route:list</p>
  
  <pre><code>    ErrorException  : Array to string conversion
  
    at /var/www/html/app/Http/Controllers/Merchant/CountryAreaController.php:312
      308|             }
      309|         }
      310|         if (!empty($request-&gt;rental_service)) {
      311|             $service[] = 2;
    &gt; 312|             foreach ($request-&gt;get('rental_vehicle_type' . []) as $item) {
      313|                 $area-&gt;VehicleType()-&gt;attach($item, ['service_type_id' =&gt; 2]);
      314|             }
      315|             $area-&gt;Package()-&gt;attach($request-&gt;rental_service, ['service_type_id' =&gt; 2]);
      316|         }
  </code></pre>