Laravel
API Reference
Subscribers
- GETGet subscribers
- POSTCreate subscriber
- POSTBulk create subscribers
- GETGet subscriber
- PUTUpdate subscriber
- DELDelete subscriber
- PUTUpdate subscriber credentials
- DELDelete subscriber credentials by providerId
- PATCHUpdate subscriber online status
- GETGet subscriber preferences
- GETGet subscriber global preferences
- PATCHUpdate subscriber preference
- PATCHUpdate subscriber global preferences
- GETGet in-app notification feed for a particular subscriber
- GETGet the unseen in-app notifications count for subscribers feed
- POSTMark a subscriber feed message as seen
- POSTMarks all the subscriber messages as read, unread, seen or unseen. Optionally you can pass feed id (or array) to mark messages of a particular feed.
- POSTMark message action as seen
- GETHandle providers oauth redirect
- GETHandle chat oauth
Topics
Notification
Workflows
Workflow Overrides
Workflow groups
Integrations
Layouts
Execution Details
Organizations
Laravel
Connect a Laravel application to Novu
Novu’s Laravel SDK provides simple, yet comprehensive notification management, and delivery capabilities through multiple channels that you can implement using code that integrates seamlessly with your Laravel application.
Explore the source code on GitHub
Installation
composer require novu/novu-laravel
 If you’re ready to start integrating in your Laravel app, jump straight to our Laravel quickstart.
Usage
use Novu\Laravel\Facades\Novu;
$response = Novu::triggerEvent([
'name' => '<WORKFLOW_TRIGGER_IDENTIFIER_FROM_DASHBOARD>',
'payload' => ['customVariables' => 'Hello'],
'to' => [
'subscriberId' => '<SUBSCRIBER_ID_FROM_DASHBOARD>',
'phone' => '07983887777'
]
])->toArray();
// or you can use the novu() helper function like so:
novu()->triggerEvent([
'name' => '<WORKFLOW_TRIGGER_IDENTIFIER_FROM_DASHBOARD>',
'payload' => ['customVariables' => 'Hello'],
'to' => [
'subscriberId' => '<SUBSCRIBER_ID_FROM_DASHBOARD>',
'phone' => '07983887777'
]
])->toArray();
Was this page helpful?
On this page