Reader Stacks

TOPIC

Authentication & Access Control

Middleware, guards, and gating access to routes and resources.

What Is Laravel Middleware?

Middleware runs between a request arriving and a controller handling it — the mechanism behind auth checks, CORS headers, and rate limiting, all inspecting or modifying the request/response without the controller knowing.

Connecting PHP to MySQL With PDO

PDO is the modern, framework-agnostic way to talk to MySQL from plain PHP — and prepared statements aren't optional if user input touches the query.

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.