Skip to content

Instantly share code, notes, and snippets.

@HeadStudios
Created January 18, 2023 22:17
Show Gist options
  • Save HeadStudios/01dd319ef0715ae9b53b7a209268e2ea to your computer and use it in GitHub Desktop.
Save HeadStudios/01dd319ef0715ae9b53b7a209268e2ea to your computer and use it in GitHub Desktop.
<?php
namespace App\Listeners;
use App\Events\ShortURLVisited;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
class PhoneMessageLinkClicked
{
/**
* Create the event listener.
*
* @return void
*/
public function __construct()
{
//
}
/**
* Handle the event.
*
* @param \App\Events\ShortURLVisited $event
* @return void
*/
public function handle(ShortURLVisited $event)
{
$shortURL = $event->shortURL;
$visit = $event->visit;
dump("Short URL is :".$shortURL->url);
dump("Visit values are: ");
dump($visit);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment