Reader Stacks

GUIDES

Laravel

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

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.

Storing Arrays and JSON in Laravel Eloquent (Casts)

A cast is what turns a raw JSON text column into a working PHP array automatically on every read and write — without one, Eloquent hands back and expects a plain JSON string instead.

Building an Autocomplete Search Field in Laravel

The backend piece — a debounced, rate-limited JSON search endpoint — stays the same regardless of which frontend autocomplete widget consumes it, and that endpoint is the part actually worth getting right.

Working With Sessions in Laravel

Beyond auth (which uses sessions internally), the Session facade is the standard place for anything that needs to persist briefly across requests for one visitor — flash messages, a multi-step form's in-progress data, a shopping cart.

Laravel Routing: A Practical Guide

Beyond a basic Route::get(), the features that actually shape a real app's routes are parameters, route model binding, named routes, and grouping shared middleware or prefixes together.