Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 1.02 KB

send-desktop-notifications.md

File metadata and controls

25 lines (16 loc) · 1.02 KB
title description
Send desktop notifications
Send desktop notifications

Send desktop notifications

Laravel Zero provides a notify method that gives the power of sending desktop notifications from your Artisan commands:

$this->notify("Hello Web Artisan", "Love beautiful..", "icon.png");

The code above will generate the following notification in your desktop:

Get more details at: github.com/nunomaduro/laravel-desktop-notifier

Notes

On macOS, to use an icon for the notification, you will need to install the terminal-notifier command-line tool.

This can be installed via RubyGems with gem install terminal-notifier, or via Homebrew with brew install terminal-notifier.