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.

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.

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.

Inserting Multiple Rows at Once in Laravel

A bulk insert() call skips every model event and timestamp auto-fill Eloquent normally handles — a trade genuinely worth making for raw insert speed, but only when those side effects aren't actually needed.

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.