Part 16 of the Goravel series . The original on DevChalk has the colour-matched code, the figures and the full diffs. Code for this part: krishankumar01/goravel-taskflow/tree/part-16 .
This part adds a CSV export of all tasks. A big export takes a while, so the request doesn't build it. It only queues a job and returns. The job builds the file in the background, and the client downloads it when it's done.
Start from the Events & Listeners code:
git clone https://github.com/krishankumar01/goravel-taskflow cd goravel-taskflow git checkout part-15 cp .env.example .env go run . artisan key:generate go run . artisan jwt:secret docker compose up -d go run . artisan migrate:fresh --seed docker compose exec postgres psql -U goravel -d taskflow -c "CREATE DATABASE taskflow_test" go install github.com/air-verse/air@latest air
Enter fullscreen mode
Exit fullscreen mode
A job, not an event
An event announces what happened, and whoever listens decides what to do about it.…