title: array_merge(): Argument #1 is not an array in laravel 5.5
body: <p>I am facing some issue and this about array_merge in laravel
  My Controller code method:</p>
  
  <pre><code>    public function isConnectedMA()
  {
      $user_id = Auth::user()-&gt;id;
      if(!empty($user_id)) {
          $isConnectedM = DB::table('user_mlc_mailchimp')-&gt;where('user_id', $user_id)-&gt;get();
          $isConnectedA = DB::table('user_mlc_aweber')-&gt;where('user_id', $user_id)-&gt;get();
      }
          $MergeArray = array_merge($isConnectedM,$isConnectedA);
      $resultArray = ['status' =&gt; 1, 'message' =&gt; 'Template uploaded!', 'dataArray' =&gt; $MergeArray];
      return Response::json($resultArray,200);
  
  }
  </code></pre>
  
  <p>the error i am facing is                          </p>
  
  <blockquote>
    <p>array_merge(): Argument #1 is not an array</p>
  </blockquote>
  
  <p>i dont know where i am wrong 
  any help will be highly appreciated !</p>