{"repo":"mateusjunges/trackable-jobs-for-laravel","free":true,"listed":false,"github":"https://github.com/mateusjunges/trackable-jobs-for-laravel","clone":"git clone https://github.com/mateusjunges/trackable-jobs-for-laravel.git","description":"This package allows you to easily track your laravel jobs!","language":"PHP","stars":316,"topics":["jobs","queue","laravel","php","hacktoberfest"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Trackable Jobs For Laravel Sponsor my work! If you think this package helped you in any way, you can sponsor me on GitHub! - My personal website: https://mateusjunges.com - Follow me on Twitter: https://twitter.com/mateusjungess - Follow me on Bluesky: https://bsky.app/profile/mateusjunges.com Documentation Installation and setup To install this package, you must be running php v8.0 or higher, as well as laravel v9.x or higher. Use composer: You can publish the configuration file and the migration with this command: Run php artisan migrate to migrate the table needed by this package, and now you are good to go! Tracking Jobs To start tracking your jobs, you just need to extend the base \\Junges\\TrackableJobs\\TrackableJob class in the job you want to track. For example, let's say you want to track the status of ProcessPodcastJob : This package will store the last status of your job, which can be created , queued , started , failed or finished . Also, it stores the started at and finished at timestamps for each tracked job. To use it, you just need to pass any model to your Job constructor: Once this trait is added to your job, your job progress will be persisted to the database. You can configure the table name by publishing this package configuration file: This command will create a new config file in config/trackable-jobs.php , with this content: Associating tracked jobs with a model Associating a tracked job with a model is specially useful if you want to track the steps to ","default_branch":null,"files":null,"tree":[],"storefront":"/r/mateusjunges","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mateusjunges/trackable-jobs-for-laravel/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}