PHP

★ Announcing laravel-sluggable v4 with self-healing URLs

[AdSense-A]

The spatie/laravel-sluggable package has been around for close to a decade. A slug is the readable part of a URL that identifies a record, like announcing-laravel-sluggable-v4-with-self-healing-urls in this post's URL. The package generates one for any Eloquent model when you save it, derived from a title or another text field, and most of the time you don't have to think about it.

We just released v4, which adds a few things worth talking about. Let me walk you through them.

(more…)

By hadi, ago
PHP

Understanding Traceroute

A clear walkthrough of how traceroute works under the hood. It explains the TTL trick, the ICMP replies routers send back, and even rebuilds the core idea in Rust. Read more

By hadi, ago
PHP

★ Generate Apple and Google Wallet passes from Laravel

[AdSense-A]

A mobile pass is that thing in your iPhone's Wallet app. A boarding pass, a concert ticket, a coffee loyalty card, a gym membership. Apple calls them passes. Google calls them objects. Both Wallet apps let you generate them, hand them out, and push live updates to the copy that's already on someone's device.

We just released Laravel Mobile Pass, a package that lets you generate those Apple and Google passes from a Laravel app and send updates to already issues passes.

Together with the package, we also published a demo site where you can create Apple Wallet passes and push an update so you can see it all working on your own iOS device.

Dan Johnson and I have been working on it for a while. Let me walk you through what it can do.

(more…)

By hadi, ago
PHP

In Praise of –dry-run

Henrik Warne makes a good case for adding a –dry-run mode to commands that change state. It gives you a fast, safe way to verify configuration, inspect behavior, and test workflows without side effects. Read Read more…

By hadi, ago