title: Trait 'Laravel\Sanctum\HasApiTokens' not found in Laravel 8
body: <p>I will be very appreciative if you could help me solve the problem I got after I try to install Laravel (8) jetstream.</p>
  <p>I got this error:</p>
  <pre><code>Symfony\Component\ErrorHandler\Error\FatalError
  Trait 'Laravel\Sanctum\HasApiTokens' not found 
  </code></pre>
  <p>What I did before that was to install Laravel to my server:</p>
  <pre><code>composer create-project --prefer-dist laravel/laravel project
  
  composer require laravel/jetstream
  
  php artisan jetstream:install livewire --teams
  
  npm install
  
  npm run dev
  
  php artisan migrate
  </code></pre>
  <p>As I've read in docs (<a href="https://jetstream.laravel.com/1.x/introduction.html" rel="nofollow noreferrer">https://jetstream.laravel.com/1.x/introduction.html</a>).</p>
  <p>My User model:</p>
  <pre><code>namespace App\Models;
  
  use Illuminate\Database\Eloquent\Factories\HasFactory;
  use Illuminate\Foundation\Auth\User as Authenticable;
  use Illuminate\Notifications\Notifiable;
  use Laravel\Fortify\TwoFactorAuthenticatable;
  use Laravel\Jetstream\HasProfilePhoto;
  use Laravel\Jetstream\HasTeams;
  use Laravel\Sanctum\HasApiTokens;
  
  class User extends Authenticatable
  {
      use HasApiTokens;
      use HasFactory;
      use HasProfilePhotos;
      use HasTeams;
      use Notifiable;
      use TwoFactorAuthenticatable;
  </code></pre>
  <p><strong>UPDATE:</strong></p>
  <p>There is no problem if Laravel have installed by:</p>
  <p>laravel new project-name --jet</p>