-
-
Save cursosdesarrolloweb/94ffbf1275c257f2144d3f06818875f5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Listeners; | |
use App\Events\NewOrder; | |
use Illuminate\Contracts\Queue\ShouldQueue; | |
use Illuminate\Queue\InteractsWithQueue; | |
class NotifyOrderToAdmin implements ShouldQueue | |
{ | |
/** | |
* The name of the connection the job should be sent to. | |
* | |
* @var string|null | |
*/ | |
public string $connection = 'database'; | |
/** | |
* The name of the queue the job should be sent to. | |
* | |
* @var string|null | |
*/ | |
public string $queue = 'listeners'; | |
/** | |
* Create the event listener. | |
* | |
* @return void | |
*/ | |
public function __construct() | |
{ | |
// | |
} | |
/** | |
* Handle the event. | |
* | |
* @param NewOrder $event | |
* @return void | |
*/ | |
public function handle(NewOrder $event) | |
{ | |
\Log::info(self::class); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment