I am using MailMessage to send a mail message to mailtrap, and I pass a variable email.
My problem it doesn't recognize the variable that I pass in the markdown. It returns an error below
Facade\Ignition\Exceptions\ViewException: Undefined variable: email (View: /var/www/resources/views/ema...
Someone knows what is the proper way of passing and getting the variable from-to markdown?
Here is my code
return (new MailMessage)
->greeting('hello')
->line('Innerline sample')
->action('Reset Button', 'http://localhost:3002/reset?sample=gibor213kg')
->line('sample')
->markdown('emails.reset')
->with('email', '[email protected]');
Here is my markdown look alike
@component('mail::layout', ['email' => $emaill])
//more codes here
{{ $email }}
//more codes here
@endcomponent