30 Days to Learn Laravel, Ep 24 - How to Preview and Send Email Using Mailable Classes

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ม.ค. 2025

ความคิดเห็น • 17

  • @vasiovasio
    @vasiovasio 4 หลายเดือนก่อน

    Laravel makes sending an email so, so elegant and easy! Thank you!

  • @hamadbakeel1951
    @hamadbakeel1951 4 หลายเดือนก่อน

    Thank you for the efforts Jeff, Amazing explanation as usual

  • @kyledoesdev
    @kyledoesdev 8 หลายเดือนก่อน +1

    any benefit in using a Mailable as opposed to a Notification? Or is it personal preferance?

    • @Deadmanstrolln
      @Deadmanstrolln 11 วันที่ผ่านมา +1

      You can think of Notifications as being analogous to abstract classes with mailables being one implementation of said abstract.
      Basically, you build notifications for a notifiable (i.e. a User). Then you can send messages to that user through any number of standard or custom channels - emails (aka mailables) being one such channel.
      If you only ever want to send emails, you can use mailables directly. If you want to be able to send to multiple channels (or dynamically decide among multiple channels), notifications are probably the better route.

    • @kyledoesdev
      @kyledoesdev 11 วันที่ผ่านมา

      @@Deadmanstrolln What I've been doing as of late is always opting for using a notification. My clients typically want their notifications via email, but we have an in-app notification bell that I can then use the toDatabase method for writing notifications for that. Thanks for the response!

    • @Deadmanstrolln
      @Deadmanstrolln 10 วันที่ผ่านมา

      @@kyledoesdev imo, if you're using laravel, you *should* be using notifications even if you only currently plan to send emails. That pattern lends its self to allowing the user to customize which notifications they want to receive, and future proofs you if you ever decide you want more than just emails.

  • @flaskdjango6092
    @flaskdjango6092 8 หลายเดือนก่อน

    Great video as usual, any chnace of making a full ecoms in laravel? Thank you for your hard work.

    • @laracastsofficial
      @laracastsofficial  8 หลายเดือนก่อน +1

      We do have series for that on laracasts: laracasts.com/series/build-a-web-shop-from-a-z

  • @sale7680
    @sale7680 4 หลายเดือนก่อน

    ❤❤❤

  • @sale7680
    @sale7680 4 หลายเดือนก่อน

    Thank u

  • @2gbeh
    @2gbeh 8 หลายเดือนก่อน

    Second

  • @techietoons
    @techietoons 8 หลายเดือนก่อน +1

    First

  • @saidurkhan1307
    @saidurkhan1307 8 หลายเดือนก่อน

    Great video as usual, any chnace of making a full ecoms in laravel? Thank you for your hard work.

    • @laracastsofficial
      @laracastsofficial  8 หลายเดือนก่อน +2

      We do have series for that on laracasts: laracasts.com/series/build-a-web-shop-from-a-z