Reader Stacks

GUIDES

Guides — Page 11

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

How to Add a Watermark to an Image in Laravel

Applying a watermark before saving, not as a separate later step, is what guarantees a watermarked image can never accidentally be served without its watermark already baked in.

Compressing and Reducing Image Size on Upload in Laravel

Compression and resizing are two genuinely separate optimizations that Intervention Image happens to handle in the same fluent chain — applying both together is what typically produces the biggest file-size reduction.

Creating a Custom Artisan Command in Laravel

How to scaffold, argument/option-flag, and register a custom php artisan command — including the one config step people forget when it does not show up in the command list.

Creating and Extracting ZIP Files in Laravel

PHP's ZipArchive extension does the actual work here — Laravel adds essentially no abstraction on top of it, which is genuinely fine, since the native API is already fairly simple for the common cases.

How to Run the Laravel Cron Job Scheduler

The one crontab entry that runs everything, why it must fire every minute, and how scheduled tasks are actually defined in Laravel 11 versus older versions.

Creating Custom Directives in Angular

An attribute directive changes the behavior or appearance of the element it's placed on — the same tool that powers ngClass and ngStyle, applied to your own logic.

Creating Custom Log Channels in Laravel

A dedicated log channel keeps one specific event stream (payments, webhooks) in its own file — genuinely easier to monitor and grep than digging it out of the shared laravel.log alongside everything else.

Building Infinite Scroll Pagination in Laravel

The scroll listener itself is the easy part — checking whether more pages actually exist, and preventing duplicate simultaneous requests, are what separates a working implementation from a buggy one.