title: strpos() expects parameter 1 to be string, object given laravel 5.5
body: <p>This is my code:</p>
  
  <pre><code>public function getLists(Request $request)
  {
      $user = $request-&gt;user()-&gt;id;
      $apikey = DB::table('apikey')-&gt;where('api_key', '=', $user);
  
      if($apikey){
      $mc = new MailChimp($apikey);
      $mailchimp_ping = $mc-&gt;get('lists',['fields' =&gt; 
          'lists.id,lists.name']);
      return Response::json($mailchimp_ping, 200);
      }
      else
      {        
          $errorResponse = [
              'message' =&gt; 'Lists not found!',
              'error' =&gt; '401'
          ];
          return Response::json( $errorResponse);
      }
  }
  </code></pre>
  
  <p>I am trying to get mailchimp list based on logged in user id where i am doing wrong? is my where clause expects something else? 
  Any help would be highly appreciated!</p>