title: Laravel validation Error messages to string
body: <p>I want to convert laravel validation error array to a comma separated string. This is to use in an api service for an ios application. So that the iOs developer can process error messages easily.</p>
  
  <p>I tried,</p>
  
  <pre><code>    $valArr = [];
      foreach ($validator-&gt;errors() as $key =&gt; $value) { 
          $errStr = $key.' '.$value[0];
          array_push($valArr, $errStr);
      }
      if(!empty($valArr)){
          $errStrFinal = implode(',', $valArr);
      }
  </code></pre>
  
  <p>But it is not working.</p>