feat/queue-messages (#19)
Co-authored-by: jon brookes <marshyon@gmail.com> Reviewed-on: https://codeberg.org/headshed/share-lt/pulls/19
This commit is contained in:
parent
1a22fd156d
commit
74bc17d019
9 changed files with 88 additions and 8 deletions
|
|
@ -35,9 +35,14 @@ class ProcessEntryUpdate implements ShouldQueue
|
|||
public function handle(): void
|
||||
{
|
||||
|
||||
$subject = env('NATS_SUBJECT', 'entry_update');
|
||||
$appUrl = env('APP_URL', 'http://localhost');
|
||||
|
||||
$incoming = [
|
||||
'id' => $this->entryId,
|
||||
'action' => $this->action,
|
||||
'subject' => $subject,
|
||||
'app_url' => $appUrl,
|
||||
];
|
||||
|
||||
$jsonData = json_encode($incoming, JSON_THROW_ON_ERROR);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue