I have a website, where when my users upload document, an event will be fired:
protected $listen = [ DocumetCreated::class => [ CreateDocumentFolders::class, ConvertPDFToImages::class ], ];
As you can see, whenever a document is uploaded and the event is fired, I have two listeners defined.
Both my listeners uses the
InteractsWithQueue; trait, so I know they will not run in sync.
However my question is, will
CreateDocumentFolders run first and then when that is finished (
return $true), then
ConvertPDFToImages will run?
CreateDocumentFolders will need to run before