How to pass custom variables in Laravel notifications?

I’m using Laravel notifications to send email notification now I’ve to change the logo of the header dynamically so I need to pass variable from the notification class.

return (new MailMessage)
            ->subject($this->emailContent['subject'])
            ->line(new HtmlString($this->emailContent['email_body']))
            ->action('Pay Invoice', url('/'))
            ->line('Thank you for using our application!')
            ->attachData(base64_decode($this->pdf), 'invoice.pdf', [
                'mime' => 'application/pdf',
            ])
            ->with(['logo' => getEmailTemplateLogo($this->invoice->business)]);

I see many blogs suggesting with() but it also not working. Am I missing here? Could someone please guide?

I’m using the default header file which I get by publishing the vendor:publish resourcesviewsvendormailhtmlheader.blade.php

@props(['url','logo'])
<tr>
<td class="header">
<a href="{{ $url }}" style="display: inline-block;">
<img src="{{ $logo }}" style="width:100px;"> // not getting logo here
</a>
</td>
</tr>