Laravel check if job extends a certain class
问题 I know you can listen to job events using before , after and failing hooks: https://laravel.com/docs/5.6/queues#job-events Queue::before(function (JobProcessing $event) { // $event->connectionName // $event->job // $event->job->payload() }); I only want certain jobs to be picked up here though. These jobs are the ones that extend from a certain abstract base class called AbstractTask . Normally I would simply perform an instanceof check but something like this won't work: $job instanceof