Building a REST API with Laravel: A Complete Guide
API routes, resources, Form Request validation, correct status codes, and Sanctum auth — a real, production-reasonable Laravel API.
Articles on web development, tools, and lessons learned.
7 articles · browse by category or tag below
API routes, resources, Form Request validation, correct status codes, and Sanctum auth — a real, production-reasonable Laravel API.
A complete token-based authentication flow for a Laravel API consumed by a separate frontend — login, protection, logout, and scoped abilities.
A real architecture for splitting a Laravel JSON API from a Next.js frontend — CORS, auth across domains, and on-demand revalidation.
Minimal APIs, Entity Framework Core, and FluentValidation — a real, working ASP.NET Core API without controller-class ceremony.
A real OpenAI API integration in Laravel — chat completions, streaming responses, conversation context, and cost control.
The real trade-offs between REST and GraphQL — caching, over/under-fetching, the N+1 problem, and when each one is genuinely the better choice.
Laravel rate limiting per route, Sanctum vs Passport, token scopes, and returning useful rate-limit headers to well-behaved clients.