'Laravel 9 error "No hint path defined for [mail]."
At first when I try to create mail with artisan command
php artisan make:mail invoice -m
everything works fine, only when I run
php artisan vendor:publish --tag=laravel-mail
I don't know why suddenly I got this error when displaying the markdown view with routes.
Below is the route:
Route::get('/', function () {
return view('mail.invoice');
});
the mail
<?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->from('[email protected]')
->subject('Invoice Pemesanan Kamar Ketaksaan Hotel')
->markdown('mail.invoice');
}
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
