PHP code example of astrotomic / notifynder-sender-email
1. Go to this page and download the library: Download astrotomic/notifynder-sender-email 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/ */
astrotomic / notifynder-sender-email example snippets
'senders' => [
'email' => [
'view' => 'your.email.view.name',
'store' => false, // wether you want to also store the notifications in database
],
],
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Astrotomic\Notifynder\Senders\EmailSender;
use Illuminate\Mail\Message as MailMessage;
use Fenos\Notifynder\Builder\Notification;
class AppServiceProvider extends ServiceProvider
{
public function boot()
{
app('notifynder.sender')->setCallback(EmailSender::class, function (MailMessage $message, Notification $notification) {
// handle the message and append the from, to, subject and so on
return $message;
});
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.