Download the PHP package codewiser/laravel-notifications without Composer
On this page you can find all versions of the php package codewiser/laravel-notifications. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download codewiser/laravel-notifications
More information about codewiser/laravel-notifications
Files in codewiser/laravel-notifications
Package laravel-notifications
Short Description Laravel Notification helpers
License MIT
Informations about the package laravel-notifications
Laravel Notifications
Provides Laravel Notification helpers.
It supports four types of notification messages:
mail
, telegram
, broadcast
and database
.
All of it implements one contract, so we could build all these messages at ones.
Broadcast
and database
messages got unified payload format:
Web Notification.
This format is ready to implement on frontend.
Migration
Migrate notifications.data
column to json
type.
Message Contract
All messages — mail
, telegram
, broadcast
and database
implements
MessageContract
, so we can build messages at ones.
Broadcast Message
Broadcast
message has payload in
Web Notification
format.
Database Message
Database
message (as a broadcast
) has
Web Notification
payload.
Persistent notification and Mentions
Database
notification may be marked as persistent.
Your application may restrict user tries to mark such notification as read.
And mark notification as read then user reaches a goals.
Database
notification may be binded to a Model,
so you can find notifications where Model was mentioned.
For example, notification invites user to review some article. The notification kept as unread until user reviews the article. Then article is reviewed, the notification is not relevant anymore.
To enable binding create a migration for mentions
table.
Add Mentioned
contract and HasMentions
trait to every model,
that may be mentioned:
Previewing notifications
You may preview not only Mail, but also Telegram and Broadcast Notifications — the same way.