Upgrade to Pro — share decks privately, control downloads, hide ads and more …

The Beauty of Laravel's Notification System

The Beauty of Laravel's Notification System

Every modern web application has some kind of notifications. This could be an email that informs the user about a new product, a notice on a dashboard that says a friendship request was accepted, a message on Slack that tells you about a successful build and so on.

Laravel has a built-in notification system that makes all these tasks as simple as it can get. Let me show you how it works, how it helped me to create my first Laravel package and what the community has to offer to make notifications even more powerful. This is a practical approach to this topic, and live coding will be included.

Christoph Rumpel

June 10, 2018
Tweet

More Decks by Christoph Rumpel

Other Decks in Technology

Transcript

  1. The Beauty of Laravel's
    Notification System
    And How It Helped Me to Create
    My First Laravel Package

    View Slide

  2. ABOUT ME

    View Slide

  3. CHRISTOPH RUMPEL
    Web Developer

    View Slide

  4. CHRISTOPH RUMPEL
    Web Developer
    PHP / Laravel
    Chatbots
    Talks
    @christophrumpel
    christoph-rumpel.com

    View Slide

  5. View Slide

  6. Finally a Starting Point
    for Your PHP Chatbot
    https://buildchatbotswithphp.com/

    View Slide

  7. NOTIFICATIONS

    View Slide

  8. NOTIFICATIONS SHOULD BE
    SHORT, INFORMATIONAL
    MESSAGES THAT NOTIFY USERS
    OF SOMETHING THAT OCCURRED
    IN YOUR APPLICATION.


    TAYLOR OTWELL

    View Slide

  9. View Slide

  10. View Slide

  11. View Slide

  12. LARAVEL NOTIFICATIONS

    View Slide

  13. DEMO #1

    View Slide

  14. Mail
    SMS (Nexmo)
    Slack
    Database
    SUPPORTED CHANNELS

    View Slide

  15. LARAVEL NOTIFICATION
    CHANNELS

    View Slide

  16. View Slide

  17. THE TEAM
    Marcel Mohamed Freek

    View Slide

  18. Facebook
    Evernote
    Telegram
    Trello
    SUPPORTED CHANNELS
    Wunderlist
    Todoist
    Twitter
    ...

    View Slide

  19. Facebook
    Evernote
    Telegram
    Trello
    SUPPORTED CHANNELS
    Wunderlist
    Todoist
    Twitter
    ...

    View Slide

  20. View Slide

  21. DEMO #2

    View Slide

  22. Great community
    Skeleton Repo
    Similar packages
    PERFECT AS MY FIRST PACKAGE

    View Slide

  23. THERE IS MORE

    View Slide

  24. QUEUABLE INTERFACE

    View Slide

  25. DELAY NOTIFICATIONS

    View Slide

  26. ON-DEMAND NOTIFICATION

    View Slide

  27. CUSTOM CHANNEL

    View Slide

  28. TESTING

    View Slide

  29. CONCLUSION

    View Slide

  30. Custom ones
    Lots of channels
    Easy but flexible
    Lots of use-cases

    View Slide

  31. Laravel Notifications Documentation
    Laravel Notification Channels
    Diving Laravel - Notifications
    RESOURCES

    View Slide

  32. https://joind.in/talk/8ffe1
    FEEDBACK - JOIND.IN

    View Slide

  33. @christophrumpel
    THANKS

    View Slide