PHP code example of teamnovu / laravel-notification-log
1. Go to this page and download the library: Download teamnovu/laravel-notification-log library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
teamnovu / laravel-notification-log example snippets
return [
/*
|--------------------------------------------------------------------------
| Compress Messages
|--------------------------------------------------------------------------
|
| In case you send a lot of E-Mails the message_sent_logs table could become
| very big. With this option you can enable that the body of every log
| entry will be compressed with gzip to reduce its size.
|
*/
'compress-messages' => env('NOTIFICATION_LOG_COMPRESS_MESSAGES', false),
/*
|--------------------------------------------------------------------------
| Resolve Notification Message
|--------------------------------------------------------------------------
|
| If this is enabled, the Logger will try to resolve the built message
| out of the notification. This is useful if you want to debug your
| sent notifications.
|
*/
'resolve-notification-message' => env('NOTIFICATION_LOG_RESOLVE_NOTIFICATION_MESSAGE', false),
];
use Teamnovu\LaravelNotificationLog\Concerns\LogNotification;
use Teamnovu\LaravelNotificationLog\Contracts\ShouldLogNotification;
class DummyNotification extends Notification implements ShouldLogNotification
{
use LogNotification;
// ...
}