title: Cannot access model using controller in Laravel
body: <p>I create new controller and models using php artisan command. And I tried to access model using controller but I get <code>Class 'Thankful' not found</code> error.</p>
  <p>Controller code:</p>
  <pre><code>&lt;?php
  namespace App\Http\Controllers;
  use Illuminate\Http\Request;
  use Thankful;
  class Thanks extends Controller
  {
      public function hello(){
  
          $my_data = new Thankful;
          $data = $my_data-&gt;my_model();
          return view(&quot;thanks&quot;,compact('data'));
      }
  }
  </code></pre>
  <p>Model Code:</p>
  <pre><code>&lt;?php
  
  namespace App;
  
  use Illuminate\Database\Eloquent\Model;
  
  class Thankful extends Model
  {
      public function my_model()
      {
          $data = &quot;Thank You&quot;;
          return $data;
      }
  }
  </code></pre>