Laravel: creating resource route results in artisan error
<p>I put this in my routes:</p>

<pre><code>Route::resource('post', ['middleware' =&gt; 'auth', 'uses' =&gt; 'PostController']);
</code></pre>

<p>and I am getting this error in php artisan:</p>

<pre><code>[ErrorException]            
  Array to string conversion  
</code></pre>

<p>What's going on here?</p>

<p>edit-- it seems to be bound to the use of the middleware.</p>