freek.dev newsletter #176

Hi there!

Welcome to the 176th freek.dev newsletter!

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

Introducing Laravel Error Share
Introducing Laravel Error Share, simply share and debug local errors with your team!

Building Laravel Error Share
Here's how our latest package works under the hood.

Product for Engineers: Helping engineers flex their product muscles (sponsored link)
Product for Engineers is PostHog’s newsletter dedicated to helping engineers improve their product skills. Subscribe for free to get curated advice on building great products, lessons (and mistakes) from building PostHog, and deep dives on top startups.

Optimistic UI Tricks for Livewire and Alpine
In this post, we'll walk through some optimistic UI tricks we apply when using Laravel with Livewire and Alpine to capture the best of both worlds.

A Quickstart Tutorial on PHP Generators
Since working with generators can be a bit tricky if you're new to them, this post offers an intro on how to use them and highlights common pitfalls to avoid.

spatie/pdf-to-image v3.0
Major overhaul of the package API, performance improvements, PHP 8.2+ support, and more!

Using Models as Flags
This article showcases how you can use Eloquent models, rather than a traditional boolean column, as flags in your Laravel application.

Mastering Programming
Some great insights by Kent Beck

Tagged Singletons
Tempest, the framework Brent Roose is working on, allows you to attach a tag to a singleton definition, which means you can have multiple singletons of the same class, as long as their tags differ.

Lessons from Open Source Software
This post is a response/reaction to "From Contributor to Maintainer: Lessons from Open Source Software" by Patrick Organ.

From Contributor to Maintainer: Lessons from Open Source Software
Lessons learned from contributing to open source software projects.

Become a debugging wizard with RAY
In this video we're learning how to use Ray to debug your projects.

Leveraging the Power of Macros in Ray
Leveraging the Power of Macros in Ray.


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

Top 10 Laravel Collection Methods You May Have Never Used. (submitted by Karan Datwani)

Validating Square Image Uploads in Laravel (submitted by Ash Allen)

How to structure your routes in Laravel (submitted by Tony Masek)

Favicon Fetcher v3.5.0 released! (submitted by Ash Allen)

Laravel Advanced: Top 5 Scheduler Functions You Might Not Know About (submitted by Karan Datwani)

Compress and Download Files in Laravel Using ZipArchive with Examples (submitted by Harish Kumar)

How to Contribute to Laravel: A Step-by-Step Guide (submitted by mohammed samgan khan)

Prioritizing exceptions (submitted by Spatie)


Old posts

Here are a couple of links from a while ago!

Sending a request with HMAC SHA256 signature using Postman

Thoughts on event sourcing: Replaying events

Testing mails in Laravel using Ray

Build Your Own Template Engine in PHP - Rendering & Echo

Introducing laravel-backup-restore

Ray is the best home for your Next.js debugging output

Locality of Behaviour

Visualising Laravel and Horizon metrics using Prometheus and Grafana

Use ray()->trace() to figure out where a call came from


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