CCelestiallines.com

Laravel Articles

Notes on PHP, Drupal, Laravel, React, and Next.js development.

Laravel Nova Composer auth.json: Local Development Without Committing Credentials

Jul 2026

Laravel Nova Composer auth.json: Local Development Without Committing Credentials

How Laravel Nova's private Composer authentication works, why auth.json shouldn't be committed to Git, and the legitimate ways around it — COMPOSER_AUTH, a global per-machine auth.json, and CI/Docker secrets.

Read more →
Laravel Eloquent Relationships Explained

Jun 2026

Laravel Eloquent Relationships Explained

A practical walkthrough of every Laravel Eloquent relationship type — one-to-one, one-to-many, many-to-many, polymorphic (including polymorphic many-to-many), and hasManyThrough — plus constraining/counting relationships, default models, and the N+1 trap to avoid.

Read more →
Laravel Authentication: Breeze vs Sanctum vs Passport

Jun 2026

Laravel Authentication: Breeze vs Sanctum vs Passport

Breeze vs Sanctum vs Passport in Laravel, chosen by the problem each actually solves — session auth for server-rendered/Inertia apps, token auth for your own SPA/mobile clients, and full OAuth2 only when a genuine third party needs delegated access.

Read more →
Laravel vs Symfony: Which PHP Framework Should You Choose in 2026?

Jun 2026

Laravel vs Symfony: Which PHP Framework Should You Choose in 2026?

Laravel vs Symfony compared on philosophy (convention over configuration vs assembled components), learning curve, performance realities, ecosystem/hiring, and a practical framework for deciding rather than a one-size-fits-all verdict.

Read more →
How to Fix CORS Errors in a Laravel API

Jun 2026

How to Fix CORS Errors in a Laravel API

Fixing CORS errors in a Laravel API properly: what CORS actually protects against, config/cors.php field by field, the preflight OPTIONS request, Sanctum SPA-specific gotchas, and a systematic way to debug rather than guessing.

Read more →
Laravel Best Practices for Clean, Maintainable Code

Jun 2026

Laravel Best Practices for Clean, Maintainable Code

Laravel maintainability habits that hold up as a codebase grows: thin controllers with action classes, Form Requests, avoiding both fat controllers and fat models, eager loading, database transactions for multi-step writes, testing critical paths, and Pint for consistent style.

Read more →