title: Laravel 8: Array to string conversion on view
body: <p><strong>UPDATE #1:</strong></p>
  <p>I fixed my typo:</p>
  <pre><code>&lt;form action=&quot;{{ route('articles.destroy'  , ['article' =&gt; $article-&gt;id]) }}&quot; method=&quot;post&quot;&gt;
  </code></pre>
  <p>But now I get this error message:</p>
  <blockquote>
  <p><strong>Illuminate\Routing\Exceptions\UrlGenerationException</strong> Missing required
  parameters for [Route: articles.edit] [URI:
  admin/articles/{article}/edit]</p>
  </blockquote>
  <p>Here is my <code>web.php</code>:</p>
  <pre><code>Route::prefix('admin')-&gt;group(function(){
    Route::get('/panel', [PanelController::class, 'index']);
    Route::resource('/articles', ArticleController::class);
  });
  </code></pre>
  <hr />
  <p>I have a blade which contains a form:</p>
  <pre><code>&lt;form action=&quot;{{ route('articles.destroy' . ['id' =&gt; $article-&gt;id]) }}&quot; method=&quot;POST&quot;&gt;
      {{ method_field('delete') }}
      {{ csrf_field() }}
      &lt;div class=&quot;btn-group btn-group-xs&quot;&gt;
         &lt;a href=&quot;{{ route('$articles.edit' . ['id' =&gt; $article-&gt;id]) }}&quot; class=&quot;btn btn-primary&quot;&gt;Edit&lt;/a&gt;
         &lt;button type=&quot;submit&quot; class=&quot;btn btn-danger&quot;&gt;حدف&lt;/button&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  <p>But when I go to this blade, it says:</p>
  <blockquote>
  <p><strong>ErrorException</strong>
  Array to string conversion (View: F:\xampp\htdocs\mywebsite\resources\views\website\backend\articles\index.blade.php)</p>
  </blockquote>
  <p>And it is referring to this line:</p>
  <pre><code>&lt;form action=&quot;{{ route('articles.destroy' . ['id' =&gt; $article-&gt;id]) }}&quot; method=&quot;POST&quot;&gt;
  </code></pre>
  <p>I don't know why I get this error, so if you know why do I get this error, please let me know...</p>
  <p>Thanks in advance.</p>