Top Tweets for #directorytree
π #DirectoryTree Progress is an #opensource #Laravel package that tracks the progress of long-running work: imports, exports, syncs, backfills, cleanup jobs, webhook replays and queued workflows. It answers what ran, how far it got, what failed and which models were touched. MIT licensed, PHP 8.2 and up, Laravel 11, 12 or 13.
β‘ Install it with composer require directorytree/progress, publish the migrations with php artisan vendor:publish --tag=progress-migrations and run php artisan migrate. A job implements TracksRun and uses InteractsWithRun next to Queueable. The package creates the run, starts it before handling and completes it after successful processing, while terminal failures are recorded automatically. You only call advance() per item.
π― Counters measure work, the ledger describes outcomes. advance() counts a processed item, missed() counts a failure, record() writes a ledger entry for a model or metadata, and count: false keeps a resource in the history without inflating totals. advance(10, failed: 2) means 10 processed with 8 succeeded. Counted entries are atomic, written in the same transaction as the counters.
π§ Lifecycle: Run::start() creates a running run, Run::create() plus begin() keeps it pending until a worker is ready. complete(), fail() and cancel() are idempotent and the first terminal state wins. restart() resets the same record in a single transaction, and restartIfFailed() checks the state under a row lock so a second worker cannot wipe progress that was already restarted.
π The job integration does the bookkeeping: TracksRun exposes $this->run in middleware(), handle() and failed(), restarts a previously failed run on queue:retry or Horizon, skips completed and cancelled runs, and leaves the run active when a job is released. RestartFailedRun and SkipIfRunFinished cover manually managed jobs, and a Laravel batch can own one run shared across many child jobs.
π Eloquent native: the tables are runs and run_items, HasRuns gives a model $import->runs, ledger status casts to RunItemStatus (Completed or Failed), owner and subject are morphs, and scopes like Run::active() or $run->items()->failed() keep queries short. Cursor-backed runs omit the total and report an indeterminate percentage until completion.
π https://t.co/exGBb1C6Qm

Last Seen Hashtags on Sotwe
ΩΩΨ―Ψ²Ψ§Ψͺ_ΨΨ΅Ψ±ΩΨ©
Seen from Egypt
MapleArtworks
Seen from Mexico
Bennybbc
Seen from Japan
latinapyt
Seen from United States
MGA1
Seen from United States
viralindonesia
Seen from Thailand
zapratiTe
Seen from United States
μμΈκ²μ΄
Seen from Korea
Ψ¨ΩΨ§Ψͺ_Ψ³ΩΨ·Ψ§ΩΨ©
Seen from Austria
Muslim
Seen from Pakistan
Most Popular Users

Elon Musk 
@elonmusk
239.7M followers

Barack Obama 
@barackobama
118.6M followers

Cristiano Ronaldo 
@cristiano
114.3M followers

Donald J. Trump 
@realdonaldtrump
111.7M followers

Narendra Modi 
@narendramodi
106.9M followers

Rihanna 
@rihanna
98.6M followers

NASA 
@nasa
92.1M followers

Justin Bieber 
@justinbieber
91.7M followers

KATY PERRY 
@katyperry
89.9M followers

Taylor Swift 
@taylorswift13
83.9M followers

Lady Gaga 
@ladygaga
75.4M followers

Virat Kohli 
@imvkohli
73.3M followers

Kim Kardashian 
@kimkardashian
70.8M followers

YouTube 
@youtube
68.6M followers

Neymar Jr 
@neymarjr
66.3M followers

Bill Gates 
@billgates
65.1M followers

Selena Gomez 
@selenagomez
63M followers

The Ellen Show
@theellenshow
62.1M followers

CNN 
@cnn
61.7M followers

X 
@x
60.6M followers
