This is the documentation for
You can switch versions in the menu on the left/at the top.
Check your current version with the following command:
composer show mateusjunges/trackable-jobs-for-laravel
To start tracking your jobs, you just need to use the Junges\TrackableJobs\Concerns\Trackable trait in the job you want to track. For example, let's say you want to track the status of ProcessPodcastJob, just add the Trackable trait into your job:
This trait provides 3 methods to your job: __construct, failed and middleware. It also adds a model public property to the job class.
If you want to override any of the methods, you must copy and paste (because you can't use parent for traits) the content of each one inside your class,
so this package still work as intended.
For example: if you need to change the constructor of your job, you can use the Junges\TrackableJobs\Concerns\Trackable and alias the __construct with some other name, for example: