title: Laravel 9 error "No hint path defined for [mail]."
body: <p>At first when I try to create mail with artisan command</p>
  <pre><code>php artisan make:mail invoice -m
  </code></pre>
  <p>everything works fine, only when I run</p>
  <pre><code>php artisan vendor:publish --tag=laravel-mail
  </code></pre>
  <p>I don't know why suddenly I got this error when displaying the markdown view with routes.</p>
  <p>Below is the route:</p>
  <pre><code>Route::get('/', function () {
      return view('mail.invoice');
  });
  </code></pre>
  <p>the mail</p>
  <pre><code>&lt;?php
  
  namespace App\Mail;
  
  use Illuminate\Bus\Queueable;
  use Illuminate\Contracts\Queue\ShouldQueue;
  use Illuminate\Mail\Mailable;
  use Illuminate\Queue\SerializesModels;
  
  class Invoice extends Mailable
  {
    use Queueable, SerializesModels;
  
    public function __construct()
    {
      //
    }
  
    public function build()
    {
      return $this-&gt;from('ketaksaan@hotel.com')
        -&gt;subject('Invoice Pemesanan Kamar Ketaksaan Hotel')
        -&gt;markdown('mail.invoice');
    }
  }
  </code></pre>