Skip to content

Instantly share code, notes, and snippets.

@Mulkave
Created June 8, 2016 21:03
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 Mulkave/29a0cdb8107f7b8f2781a2a9f2f77026 to your computer and use it in GitHub Desktop.
Save Mulkave/29a0cdb8107f7b8f2781a2a9f2f77026 to your computer and use it in GitHub Desktop.
<?php
namespace Directory\Domains\Notification\Jobs;
use Event;
use Directory\Foundation\AbstractQueueableJob;
class NotifyOfficersJob extends AbstractQueueableJob
{
private $notification;
public function __construct($notification)
{
$this->notification = $notification;
}
public function handle()
{
// listeners access the citizen using $notification->citizen
Event::fire($this->notification);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment