Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

dan3460's avatar

Mailable customize logo

I did not see anyone with this question, so is probably something really simple right in front of me and i can't see. How to i put my logo on a mailable. I did publish laravel notifications, but cannot find where i can change the logo and the footer that has the laravel copyright. Just in case is necessary here are my mailables:

<x-mail::message>
# Seashore Fruit & Produce Co. Delivery Update

Dear Customer,
Great news! Your delivery is on its way! Our truck is currently en route, bringing Seashore Fresh products straight to your doorstep. We are committed to keeping you informed every step of the way as part of our fresh and honest partnership, and that's why we're thrilled to share the details of your delivery's progress.
Here are the essential details for your order:

šŸ“… Date: {{$date}}  <br>
šŸš› Route Number: {{$route}}<br>
šŸ”¢ Sequence Number: {{$sequence}}<br>
ā° Estimated Time of Arrival (ETA): {{$eta}}<br>

<x-mail::button :url="'www.seashoreeast.com'">
Seashore Fruit and Produce
</x-mail::button>

Should you have any questions or require any assistance, our customer service team is here to help. Feel free to reach out to us at 609.345.3229 x 2 or [email protected].
Thank you for choosing Seashore Fruit & Produce Co. for your fresh produce and food service needs! 

Thanks,<br>
The Seashore Fruit & Produce Co. Team
</x-mail::message>
<?php

namespace App\Mail;

use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Mail\Mailables\Content;
use Illuminate\Mail\Mailables\Envelope;
use Illuminate\Queue\SerializesModels;

class OrderNotification extends Mailable
{
    use Queueable, SerializesModels;
    public $date;

    /**
     * Create a new message instance.
     */
    public function __construct(
        public $route,
        public $sequence,
        public $eta
    )
    {
        $this->date = Carbon::now()->format('d-m-Y');
    }

    /**
     * Get the message envelope.
     */
    public function envelope(): Envelope
    {
        return new Envelope(
            subject: 'Track My Truck',
        );
    }

    /**
     * Get the message content definition.
     */
    public function content(): Content
    {
        return new Content(
            markdown: 'mail.customer.orderNotification',
        );
    }

    /**
     * Get the attachments for the message.
     *
     * @return array<int, \Illuminate\Mail\Mailables\Attachment>
     */
    public function attachments(): array
    {
        return [];
    }
}

Thanks

0 likes
3 replies
thinkverse's avatar
Level 15

You'll have to publish the components to start customizing the components.

php artisan vendor:publish --tag=laravel-mail

The header and footer will be published to vendor/mail/html/header.blade.php and vendor/mail/html/footer.blade.php respectively. Where that is called is in the vendor/mail/html/mail.blade.php component.

Although if you only want to remove the Laravel logo and Laravel text in the footer, you can update the APP_NAME environment variable to your applications name.

- APP_NAME=Laravel
+ APP_NAME="My Amazing App"

Hope that helps. šŸ‘

2 likes
dan3460's avatar

Now i see my error, i published just the notifications. Thank you both @snapey and @thinkverse. Was right in front of my nose.

Please or to participate in this conversation.