title: Class 'App\Newuser' not found in Laravel 7.27.0 while trying to implement models in Laravel
body: <p>I am trying to use the model method of laravel to insert data into a database, but I got the error message. Even after carefully going through the documentation, I am unable to find any error of my own.
  Here is the Controller</p>
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  use App\Http\Controllers\Controller;
  use Illuminate\Http\Request;
  use DB;
  use Illuminate\Support\Facades\Hash;
  use Illuminate\Database\Eloquent\Model;
  use App\Newuser;
  
  class NewUserRegnController extends Controller
  {
         public function submitNewRegn(Request $request){
       
      $first_name         =   $request-&gt;first_name;
      $last_name          =   $request-&gt;last_name;
      $email              =   $request-&gt;email;
      $password           =   Hash::make($request-&gt;password, [
                                       'memory' =&gt; '1024',
                                       'time' =&gt;  '2',
                                       'threar' =&gt;  '2',
                                      ]);
      // $confirm_password    =   $request-&gt;confirm_password;
      $mobno              =   $request-&gt;mobno;
      $dob                =   $request-&gt;dob;
      $gender             =   $request-&gt;gender;
      $address            =   $request-&gt;address;
      $country            =   $request-&gt;country;
      date_default_timezone_set(&quot;Asia/Kolkata&quot;); 
      $time               =   date(&quot;Y-m-d,H:i:s &quot;);
  
        $user = new Newuser;
  
        $user-&gt;first_name = $first_name; 
        $user-&gt;last_name = $last_name; 
        $user-&gt;email = $email; 
        $user-&gt;password = $password; 
        $user-&gt;mobno = $mobno; 
        $user-&gt;dob = $dob; 
        $user-&gt;gender = $gender; 
        $user-&gt;address = $address; 
        $user-&gt;country = $country; 
        $user-&gt;time = $time; 
  
        $user-&gt;save();
  </code></pre>
  <p>And the Model</p>
  <pre><code>&lt;?php
  
  namespace App;
  
  use Illuminate\Database\Eloquent\Model;
  
  class Newuser extends Model
  {
      protected $table = 'users';
      protected $primaryKey = 'id';
      protected $keyType = 'bigint';
  }
  
  </code></pre>
  <p>Also, how do I make use of prepared statements?
  I am a Laravel Beginner, so please explain in easier words</p>