I have an event listener that creates and saves a pdf file from a record in the db.
This process completes correctly, then I log the results and wish to fire a Job or another Event and neither will run.
If I run either from a controller they execute flawlessly.
handle method looks like so:
/**
* Handle the event.
*
* @param SaveRecordPdf $event
* @return void
*/
public function handle(SaveRecordPdf $event)
{
$record = $event->record;
if ($this->service->publish($record)) {
Log::info($record->published_filename . ' was stored successfully.');
// fire publish job
PublishFile::dispatch($record);
}
}
Is there any known reason why this would be happening?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire