title: Passing multidimensional array to blade using controller
body: <p>I want to pass multidimensional Array to Blade file using Controller method:  </p>
  
  <pre><code>        return view('msg.simple', [
              'message' =&gt; 'here is my message',
              'links' =&gt; [
                 [
                      'title' =&gt; 'link title 1',
                      'url' =&gt; 'www.example.com'
                 ],
                 [
                      'title' =&gt; 'link title 2',
                      'url' =&gt; '#2'
                 ]
              ]
          ]);
  </code></pre>
  
  <p>view file (blade):</p>
  
  <pre><code>@foreach($links as $link)
      &lt;a href="{{$link-&gt;url}}"&gt;{{$link-&gt;title}}&lt;/a&gt;
  @endforeach
  </code></pre>
  
  <p>but it shows the following error:</p>
  
  <blockquote>
    <p>htmlspecialchars() expects parameter 1 to be string, array given</p>
  </blockquote>