freek.dev newsletter #186

Hi there!

Welcome to the 186th freek.dev newsletter!

Here are a couple of links I hope you'll enjoy as much as I did.

⭐ Implementing Multitenancy in Laravel
Here's the recording of the talk I did at this years Laracon India. In this talk, I show how we use our laravel-multitenancy package to make Mailcoach tenant aware. Enjoy!

⭐ Running PHP tests in parallel on GitHub actions
A couple of years ago, Laravel introduced a great feature which allows to run PHPUnit / Pest tests in parallel. This results in a big boost in performance.

Sevalla – Hosting as You Imagine (sponsored link)
Sevalla streamlines your deployment journey with a trio of powerful managed solutions: app hosting, managed database hosting, and static site hosting. Leveraging the robust infrastructures of GCP and Cloudflare alongside the scalability of Kubernetes, we deliver effortless deployments without compromising on power.

Using PHP as a (Terrible) Video Player
Don't use PHP for this. Still fun to do though.

DevOps With Laravel: Queues and Workers in Production
Marin Joo covers configuring Supervisor to manage worker processes, including defining commands, scaling, and logging. He also explores using multiple queues and prioritizing them to optimize worker usage.

Laravel Observers vs Event Listeners: What’s the Difference?
If you’ve been working with Laravel for a little while, you’ve probably come across observers and event listeners. But what is the difference?

Optimize Bulk Insertions with Laravel's New fillAndInsert() Method
Laravel’s new fillAndInsert() method enables bulk insertions while applying model casting, timestamps, and UUID generation.

Impact, agency, and taste
Many of the most effective people I’ve worked with also do the most metacognition, i.e., reflecting on their own (and their team’s) work and thought processes, and figuring out how to improve them.

Stripe Is My DNS Provider Now: When Good APIs Meet Bad Ideas
Stripe metadata is great for config, entitlements, and... DNS? This experiment takes one good API feature and stretches it into the worst possible infrastructure layer.

A cookieless, cache-friendly image proxy in Laravel (inspired by Cloudflare)
Transforming and serving images from Laravel in a cache-friendly way.

A Sneaky Phish Just Grabbed my Mailchimp Mailing List
Troy Hunt recently becaming the victim of phising. This proves yet again, that this can happen to anyone, not only non-technical people.

Goodbye reCAPTCHA, hello Turnstile
We've been using this solution in our projects as well.

How to Write Blog Posts that Developers Read
Michael Lynch, a software blogger, provides examples of his own successful posts and suggests strategies for promoting articles on platforms like Hacker News and Reddit.

Naming things is suddenly easier
Naming things is good skill to have for any programmer.

Developer Tooling #001
Some cool tools, as suggested by Patrick Organ.


Community links

In this section you'll find links submitted by others. Let me know if you did write or stumbled across a blog post, tutorial or video that might be interesting to appear in this section

Laravel Blade Starter Kit (submitted by Christian Taylor)

Formatting and Spelling Ordinal Numbers in PHP and Laravel (submitted by Ash Allen)

Human-Readable File Sizes in Laravel (KB, MB, GB) (submitted by Ash Allen)

Laravel Not Reading .env? Here’s The Right Way to Manage Your App Settings (submitted by Karan Datwani)

Covariance and Contravariance in PHP (submitted by Ash Allen)

Hosting a Laravel app with AWS Beanstalk (submitted by Chris Rhymes)

Implementing Branch by Abstraction (submitted by Andrew Cairns)


Old posts

Here are a couple of links from a while ago!

Mailcoach has a beautiful new coat of paint!


Did you like this newsletter?

I take a lot of time curating the right links for you. You could do me a favor by either spreading the word and letting others know about my newsletter.

Alternatively, you could consider picking up one of the paid products my team and I have worked on:

  • All spatie products
  • Oh Dear
  • Mailcoach
  • Flare

If you have any questions, remarks or thoughts about this newsletter, simply hit reply!

Thank you so much for reading!


Freek

You are receiving this newsletter because you subscribed at freek.dev Unsubscribe from this newsletter This mail was sent using Mailcoach

Online version • Past editions • Unsubscribe