php - change logo default notification email laravel 8
one text
Solution:
Try this
<tr>
<td class="header">
<a href="{{ $url }}" style="display: inline-block;">
@if (trim($slot) === 'Laravel')
<img src="https://laravel.com/img/notification-logo.png" class="logo" alt="Laravel Logo">
@else
<img src="{{ asset('img/image_default.png') }}" class="logo" alt="My logo">
@endif
</a>
</td>
</tr>
As you can see there is a conditional statement checking if the app name is equal to Laravel, change the name of your app from the env file
and then remove the {{ $slot }}
and use your own path. You need to change the app name so that it skips the first portion of the statement and selects the space between the @else
.