for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Listeners;
use App\Events\UserCreated;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Support\Facades\Log;
class LogUserCreated
{
/**
* Create the event listener.
*
* @return void
*/
public function __construct()
//
}
* Handle the event.
* @param UserCreated $event
public function handle(UserCreated $event)
Log::notice("User created: ".$event->user);