Basically I want to display a logo in email notifications, so I did the following
First, copied the components by running the following statement
php artisan vendor:publish --tag=laravel-mail
Then in the resources/views/vendor/mail/html/message.blade.php
I modified this header
slot like this
@slot('header')
@component('mail::header', ['url' => 'website address'])
<img src="{{asset('logo.png')}}" alt="{{config('app.name')}}">
@endcomponent
@endslot
The logo.png
file is just sitting inside the public
folder but when an email is sent, the logo doesn't show. An empty box is displayed instead like this
What possibly could I be doing wrong?