Luca Longo (@masterix21) header
Luca Longo (@masterix21) profile picture
Catanzaro - Calabria - Italy
Joined June 2009
Photo by Luca Longo (@masterix21)Photo by Luca Longo (@masterix21)Photo by Luca Longo (@masterix21)Photo by Luca Longo (@masterix21)Photo by Luca Longo (@masterix21)Photo by Luca Longo (@masterix21)Photo by Luca Longo (@masterix21)Photo by Luca Longo (@masterix21)Photo by Luca Longo (@masterix21)Photo by Luca Longo (@masterix21)
Laravel Licensing by @masterix21 is a licensing management package for Laravel, featuring offline verification, seat management, cryptographic key rotation & more 📦️ - madewithlaravel.com/laravel-…
1
8
36
1,962
The Laravel framework now has first-party support for migrating your files from one object store to another as data is requested. • S3 → R2 • R2 → B2 • FTP → S3 • (etc) Like Cloudflare's Sippy, but vendor agnostic. I wrote all about it here! laravel.com/blog/object-stor…
21
48
8
431
51,439
The most interesting part of Pest 5 isn’t that it supports AI agents. It’s that agents can now verify their own changes inside the real test suite. Code generation is becoming cheap; reliable feedback is becoming the real engineering advantage. #PHP #PestPHP #AI
6
67
I love the new human-in-the-loop approval in Laravel AI SDK. Giving agents the ability to act is powerful, but letting us decide when they must stop and ask feels like the right balance between autonomy and trust. #Laravel #AI #AIAgents
1
46
Laravel Addressable began as a simple way to attach addresses to Eloquent models. With v2.4, it can also understand where they are. 🗺️ Geocoding, reverse geocoding, automatic coordinates, fallback drivers and queued jobs. github.com/masterix21/larave… #Laravel #PHP #Geocoding
29
Happy SysAdmin Day to all of us who keep everything running, fix problems nobody knew existed, and hear “I didn’t touch anything” at least once a day. 😅 May our backups be restorable, our servers stay online, and our Friday deployments be boring. 🖥️☕️ #SysAdminDay #SysAdmin #IT #DevOps #TechLife
3
59
Two sources of truth cause this: • members table • mutable usage counter Every create, import, delete and bulk edit must update both. One missed path creates drift. If usage can be derived from domain data, compute it there. Save counters for things truly consumed. ⚠️
1
9
Your SaaS says a workspace has used 9 of 10 seats. The database contains 11 members. Nobody bypassed the plan. Your entitlement counter simply missed an import, deletion, retry, or bulk update. Now “remaining capacity” is fiction. Here’s where the drift starts. 🧵
1
12
6/7 I built Laravel Licensing around this model: • PASETO v4 tokens signed with Ed25519 • offline verification • root-signed, rotatable signing keys • seat limits and grace periods • isolated keys for multiple products
1
74
5/7 Key rotation is where many implementations become fragile. Embed one permanent public key and rotation becomes a forced client update. Ship signing secrets to the client and the entire system is compromised. You need a verifiable key hierarchy.
1
7
4/7 A safer model is a short-lived, cryptographically signed token. The server signs the license claims. The client stores only public verification material, so it can verify authenticity offline without possessing the secret needed to issue new licenses.
1
8
3/7 Calling home on every launch is not the answer either. It adds latency, creates a single point of failure, and makes your software unusable in factories, kiosks, restricted networks, and other genuinely offline environments.
1
6
2/7 A local boolean, expiry date, or JSON file is not a license check. It is user-controlled state. Anyone with filesystem access can copy it, edit it, restore an old version, or patch the branch that reads it.
1
8
1/7 Your desktop or on-premise app must keep working without internet. But the moment license validation depends on your API, a network outage can lock out paying customers. So you cache “licensed = true” locally. That creates a different problem. 🧵 #laravel #licensing
🤖 Made with AI
1
37
✅ Boolean strategy Not everything is a quota. Some entitlements are just flags: "has analytics", "can use SSO". if (Entitlements::allows($team, Feature::Analytics)) { ... } No quantities, no usage tracking — and calling can() on a boolean type throws, so the two APIs can't be mixed up.
1
12
available() is then just capacity − resolved usage (floored at 0). No usage rows to write, nothing to reconcile: your resolver is the single source of truth — and it's skipped entirely when the subscriber has no capacity for that type.
1
9