Laravel 13 · Next.js 16 · PHP 8.4

Build better apps, ship with confidence

Deep-dive articles, step-by-step tutorials, and real-world case studies on modern full-stack development — written by a developer, for developers.

Featured Posts

View all

Browse by Category

Recent Posts

All posts
📝
ArticleIntermediate

Push Notifications in Laravel: Storing Device Tokens for iOS and Android

Before you can push a single notification to a phone, you need somewhere to store the token that identifies it. iOS and Android use completely different services — APNs and FCM — and each token has a lifecycle: it can expire, rotate, or become invalid. This post covers the database design, the registration endpoint, and the upsert strategy that keeps your token table clean.

D
Dinesh Wijethunga
1 day ago
6m
📝
ArticleBeginnerLaravel

PostGIS Spatial Queries in Laravel: How We Resolve Booking Zones at Scale

When a customer requests a ride, we need to know which service zone covers their pickup point — in under 50ms, for thousands of concurrent requests. PostGIS ST_Contains with a spatial index handles the geometry. A three-layer cache (request, Redis, DB) keeps it fast. Here's the complete implementation.

D
Dinesh Wijethunga
16 days ago
5m
📝
ArticleBeginner

Multi-Tenant RBAC in Laravel: Team-Scoped Permissions with Spatie and Teamwork

A sys_admin should see everything. An agency subadmin should only see their agency's drivers. A fleet driver shouldn't manage vehicles at all. Implementing team-scoped RBAC with spatie/laravel-permission and mpociot/teamwork means permissions are checked against both role and team simultaneously — here's how it works.

D
Dinesh Wijethunga
20 days ago
5m

Stay in the loop

Get new articles, tutorials, and case studies delivered to your inbox. No spam, unsubscribe anytime.