1. Go to this page and download the library: Download synergitech/laravel-postal library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?phprequire_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
synergitech / laravel-postal example snippets
useApp\Notifications\EnquiryNotification;
useIlluminate\Support\Facades\Notification;
useSynergiTech\Postal\PostalNotificationChannel;
// Using the Notifiable trait
$user->notify(new EnquiryNotification($enquiry));
// On demand notifications
Notification::route(PostalNotificationChannel::class, 'john.smith@example.com')
->notify(new EnquiryNotification($enquiry));