title: Laravel - Class 'App\Http\Controllers\Object' not found
body: <p>I am currently trying to figure out why I get this error:</p>
  
  <pre><code>FatalThrowableError: Class 'App\Http\Controllers\Object' not found in Operators.php line 23
  </code></pre>
  
  <p>This is the Operators.php controller from where the error is coming from:</p>
  
  <pre><code>public function getOperatorData()
  {
      $api = new Client([
      'base_uri' =&gt; 'https://www.space-track.org',
      'cookies' =&gt; true, 
      ]); $api-&gt;post('ajaxauth/login', [
        'form_params' =&gt; [
           'identity' =&gt; '#', 
           'password' =&gt; '#', 
       ],
      ]);
      $response = $api-&gt;get('basicspacedata/query/class/satcat/orderby/INTLDES%20desc/limit/1/metadata/false');
      $mydata = json_decode($response-&gt;getBody()-&gt;getContents());
      $object = new Object();
      $object-&gt;intldes = $mydata-&gt;INTLDES;
      $object-&gt;satname = $mydata-&gt;SATNAME;
      $object-&gt;save();
      return view('pages/satellite-database', compact('object'));
  }
  </code></pre>
  
  <p>The specific line from where the error comes from is:</p>
  
  <pre><code>$object = new Object();
  </code></pre>
  
  <p>The line shown above should be creating a new model for querying`in a blade file later on. </p>
  
  <p>I am usually able to solve these (either I forgot the 'use' or something), but I have been unable to solve this error.</p>