Skip to content

Instantly share code, notes, and snippets.

@cursosdesarrolloweb
Created July 22, 2021 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cursosdesarrolloweb/37c60f716568e71e328618c801be6210 to your computer and use it in GitHub Desktop.
Save cursosdesarrolloweb/37c60f716568e71e328618c801be6210 to your computer and use it in GitHub Desktop.
<?php
namespace App\Listeners;
use App\Events\NewOrder;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
class SendInvoiceToCustomer
{
/**
* Create the event listener.
*
* @return void
*/
public function __construct()
{
//
}
/**
* Handle the event.
*
* @param NewOrder $event
* @return void
*/
public function handle(NewOrder $event)
{
// TODO Enviar correo al cliente con la factura de su pedido
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment