Guest User

Untitled

a guest
Dec 11th, 2017
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. php artisan make:mail ConfirmPayment --markdown="emails.confirm-payment"
  2.  
  3. //sending via tinker
  4. Mail::to($pilot = App\Pilot::first())->send(new App\Mail\ConfirmPayment($pilot));
  5.  
  6. // ConfirmPayment
  7. public $pilot;
  8.  
  9. public function __construct($pilot)
  10. {
  11. $this->pilot = $pilot;
  12. }
  13.  
  14. // 1.Customizing the email template
  15. php artisan vendor:publish --tag=laravel-mail
  16.  
  17. // will publish files in views/mail/html/themes
  18. // 2.duplicate the .css inside themes an rename it
  19.  
  20. // 3.go to config/mail.php and change the 'markdown' theme to renamed file above (.css)
  21.  
  22. //4. to update the changes before testing:
  23. php artisan config:cache
Add Comment
Please, Sign In to add comment