Blog

Practical notes on software, products, and growth.

Clear articles from ZerithonLabs on web applications, Laravel, deployment, hosting, and digital systems for real businesses.

Setting Up a New Laravel Project the Right Way: Vite, Custom Templates & Git, Step by Step

Setting Up a New Laravel Project the Right Way: Vite, Custom Templates & Git, Step by Step

The first hour of a new Laravel project sets the tone for everything after it — get Vite configuration, template integration, and app config right, and every feature slots in smoothly afterward. This is the practical, step-by-step version: from composer create-project through setting the site identity, wiring Vite correctly, converting a raw HTML template into proper Blade layouts, and pushing a clean first commit to Git.

Getting Started Git Laravel Project Setup Templates Vite
Laravel Seeders & Factories in Practice: Auto-Creating a Default Admin and Site Settings

Laravel Seeders & Factories in Practice: Auto-Creating a Default Admin and Site Settings

Every fresh Laravel install needs an admin account to log into and basic site settings so it isn't blank on first load — doing this manually every deploy is exactly what seeders exist to eliminate. This guide covers seeders vs factories properly, then builds a real example: a default admin seeded from .env credentials using firstOrCreate so it's safe to re-run, plus a flexible settings table for site name, logo, timezone, favicon, and meta tags.

Best Practices Database Factories Laravel Seeders
Database Design Best Practices: Indexing, Relational Design & Datatypes — with a Music Playlist Example

Database Design Best Practices: Indexing, Relational Design & Datatypes — with a Music Playlist Example

Most database performance and maintainability problems trace back to day-one decisions: wrong datatypes, missing indexes, and un-normalized relationships. This guide covers the core principles — normalization, datatype sizing, and indexing strategy — then applies every one of them to a complete practical example: a music playlist system with singers, songs, categories, and user playlists, including the full SQL schema, Laravel migrations, and how to avoid the N+1 query problem.

Database Design Indexing Laravel MySQL Normalization SQL
Laravel Monoliths Done Right: Applying SOLID Principles with a Practical Example

Laravel Monoliths Done Right: Applying SOLID Principles with a Practical Example

Monolith gets treated as a dirty word, but for most Laravel apps it's the right architecture — the real problem is a monolith with no internal structure. This post walks through applying SOLID principles with a full before-and-after example: refactoring a 60-line fat checkout controller handling Stripe and PayPal directly into clean, testable, extendable service classes — without touching your deployment model at all.

Architecture Best Practices Design Patterns Laravel Monolith SOLID
Mastering Laravel Project Structure: Blade Layouts, Partials, Vite Assets & Clean Folder Organization

Mastering Laravel Project Structure: Blade Layouts, Partials, Vite Assets & Clean Folder Organization

Laravel doesn't force much structure, so two projects can both 'work' while looking completely different — and that gap shows up the moment someone new opens the codebase. This guide lays out a Blade layout hierarchy (master → app/admin), focused partials, Vite entry points split by area, lean models, centralized helpers, and Form Request validation, with a full folder tree you can copy directly into your own project.

Best Practices Blade Laravel Project Structure Vite
Laravel File Permissions & Security Best Practices for Shared Hosting and VPS

Laravel File Permissions & Security Best Practices for Shared Hosting and VPS

Wrong file permissions are one of the top two ways Laravel apps break or get breached in production — either too locked-down to run, or wide open enough for anyone on the server to read your .env. This guide gives exact permission levels for every key folder, separate command sets for VPS and shared hosting, and the .htaccess rules that keep sensitive files out of reach

.htaccess File Permissions Laravel Security Shared Hosting VPS