title: Laravel - 'array_merge(): Argument #2 is not an array' occurring when i'm not using an array anymore
body: <p>I was using arrays to pass data back to a view from a controller, but now have switched to using just strings, however this error pops up.</p>
  
  <p>" array_merge(): Argument #2 is not an array "</p>
  
  <p>I'm not even using an array anymore, and i've done php artisan clear:cache incase there was some cache I didn't know about. I'm new to laravel but all the results I find are dealing with people incorrectly using arrays, whereas i'm just passing a simple string. </p>
  
  <p>Can somebody please help? Below is my code</p>
  
  <p><strong>section of code in controller</strong></p>
  
  <pre><code>else {
                  $result = 'That email belongs to an existing referrer.';
                  return view('admin.invalidReferrer', $result);
  </code></pre>
  
  <p><strong>section of code in invalidReferrer.blade.php</strong>
      @extends('admin.admin')</p>
  
  <pre><code>@section('results')
  
  &lt;h4&gt;{{ $result }}&lt;/h4&gt;
  
  
  @stop
  </code></pre>
  
  <p><strong>previous controller solution</strong></p>
  
  <pre><code>else {
      $result = ['That email belongs to an existing referrer.'];
      return view('admin.invalidReferrer', compact('result'));
  </code></pre>
  
  <p><strong>previous blade solution</strong></p>
  
  <pre><code>@section('results')
  
  &lt;h4&gt;{{ $result[0] }}&lt;/h4&gt;
  
  @stop
  </code></pre>