title: call to undefined method ***::all()... Eloquent/Laravel
body: <p>So I have a file Classes.php (and I do have a table 'classes' in my database)</p>
  
  <pre><code>&lt;?php
  
  namespace KQHT;
  
  use Illuminate\Database\Eloquent\Model;
  
  class Classes extends Model
  
  {
      protected $table = "classes";
  }
  </code></pre>
  
  <p>and I write this in file route.php</p>
  
  <pre><code>Route::get('/test', function(){
          $myClass = Classes::all();
          return $myClass;
      });
  </code></pre>
  
  <p>but when I run, it returns this error </p>
  
  <pre><code>FatalErrorException in routes.php line 46:
  Call to undefined method Classes::all()
  </code></pre>
  
  <p>Anyone know how to fix this?</p>