
Luca Longo retweeted
🔗 Your Laravel queue workers keep 8 copies of your app in memory
dev.to/tevkert/your-laravel-…
#laravel #performance #spatie #memory #queues
Luca Longo retweeted
Laravel Licensing by @masterix21 is a licensing management package for Laravel, featuring offline verification, seat management, cryptographic key rotation & more 📦️ - madewithlaravel.com/laravel-…
Luca Longo retweeted
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…
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
Laravel Entitlements handles this with ComputedStrategy: plan capacity, usage resolved from domain data. It’s read-only, so no second counter can drift.
What could a SaaS compute instead? 🔍
github.com/masterix21/larave…
#Laravel #PHP #SaaS #OpenSource
20
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
7/7 Laravel Licensing handles the server lifecycle. Its companion client validates licenses, registers usage and protects routes—even offline.
Server: github.com/masterix21/larave…
Client: github.com/masterix21/larave…
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
🎛️ In Filament, boolean plan items now render as a simple "Enabled" toggle — no more quantity inputs, with the 0/1 invariant enforced all the way down to plan assignment.
Full changelog:
github.com/masterix21/larave…
11
✅ 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




