To integrate your Laravel application with Paragraph, first install our package using Composer:
$ composer require paragraph/laravel-notifications
Then, add the following two environment variables to your .env file:
Now that Paragraph is tracking the outgoing notifications, you need to sync this information with the Paragraph dashboard. To do so, run our console command – it will go through locally saved files and submit the data to our API. You can run this manually or you can do this as a scheduled command (recommended) – up to you.
$ php artisan paragraph:submit
Now, you will get full visibility over your application notifications!
Go to "Notifications" section in Paragraph to see a historical log of all your outgoing messages including email, sms and any custom channels. See what exactly did you send and why.
Notifications historical log
Click on recipient (customer) ID to filter by a specific customer of yours. Customer IDs can be anonymized by implementing a paragraphId() method on your Notifiable class (eg. User class):
public function paragraphId()
{
return md5($this->id);
}
There is more cool stuff! Click on any notification to get more advanced information about it including a list of ways how it's triggered in your application. Does it come from a controller or maybe a scheduled command, or maybe both?
Notification advanced view
Notification advanced view