PHP code example of zeevx / laravel-sendbyte-transport
1. Go to this page and download the library: Download zeevx/laravel-sendbyte-transport 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/ */
zeevx / laravel-sendbyte-transport example snippets
use Illuminate\Mail\Mailables\Envelope;
public function envelope(): Envelope
{
return new Envelope(
subject: 'Your receipt',
tags: ['receipt', 'payment'],
);
}
public function headers(): Headers
{
return new Headers(text: [
'X-SendByte-Idempotency-Key' => 'order-4421-receipt',
]);
}