Reader Stacks

GUIDES

Laravel — Page 5

Laravel tutorials, Eloquent, artisan, auth, APIs, and deployment.

JWT Authentication in Laravel: Setup and Protected Routes

JWT auth trades Sanctum's simpler cookie/token model for a fully stateless token the server never stores — useful specifically for a mobile app or third-party API consumer, not typical for a first-party web app.

How to Get Request Headers in Laravel

Header names are matched case-insensitively — $request->header('Content-Type') and $request->header('content-type') both work identically, since the HTTP spec itself never treats header casing as meaningful.

Laravel Blade Components: A Practical Guide

A Blade component packages markup and logic into a reusable piece with its own props — anonymous components for pure markup, class-based ones when real logic is needed behind them.

Password Hashing and Verification in Laravel

The Hash facade, why bcrypt/argon2 hashes look different every time for the same password, and the correct way to verify a login without ever decrypting anything.

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.