I am trying to load blade templates from a different path than the default resource path. But I keep getting the error:
View [request.nlEmailTemplateTreatment] not found.
My path where the email template is stored:
root/storage/app/emails/request/nlEmailTemplateTreatment.blade.php
In the config/view.php I added this:
'paths' => [
resource_path('views'),
realpath(storage_path('app/emails/request'))
],
In my Mailable class I do this:
public function build()
{
return $this->from('somerandomeemail@gmail.com')
->view('request.nlEmailTemplateTreatment');
}
I'm not sure why it's not working, I cleared cache with:
php artisan config:cache
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire