Reader Stacks

GUIDES

Guides — Page 4

Reader Stacks covers PHP, Laravel, Angular, Flutter, DevOps, and security tutorials for working developers.

Laravel Queues: Running Jobs in the Background

Anything slow that doesn't need to finish before the response is sent — an email, a report export, a third-party API call — belongs in a queued job, not inline in the request.

Laravel Migrations: Renaming and Dropping Columns

Renaming a column, dropping one, and dropping a foreign key each have a specific gotcha — a dependency on doctrine/dbal for renames on older Laravel, and getting the foreign key's actual constraint name right for drops.

How to Create and Use a Service in Angular

A service is where shared logic and state belong instead of a component — Angular's dependency injection handles creating and sharing a single instance across every place that needs it.

Bulk Inserting Rows in Laravel Eloquent

A loop of individual ->save() calls means one query per row — insert() (or upsert() for a merge) does it in one, at the cost of skipping model events and timestamps unless handled manually.

Uploading and Storing Images in Laravel 10 and 11

The image upload API itself hasn't meaningfully changed across recent Laravel versions — what genuinely differs in Laravel 10 and 11 is scaffolding and folder structure, not the store() call itself.

How to Fetch Records Between Two Dates in Laravel

whereBetween() handles the basic case cleanly — the real detail to get right is making sure the end date's time component actually includes the whole day, not just midnight.

Generating QR Codes in Laravel

A single well-maintained package (endroid/qr-code, wrapped by simple-qrcode) covers this — the actual decisions are output format, error-correction level, and whether to embed a logo.