freek.dev newsletter #182

Hi there!

Welcome to the 182nd freek.dev newsletter!

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

Laravel’s parallel testing on multiple DB connections
Pretty cool that this behaviour can be customized easily.

Complete Guide to Laravel and Livewire PHP Attributes (23 Attributes)
Learn about the 23 powerful Laravel and Livewire PHP Attributes.

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.

Why Your Laravel Relationship Returns an Integer (and How to Fix It)
Sometimes, no matter how senior you are, little issues like this can humble you.

Mixing up our styling recipe for Ray v3
Here's how we use Tailwind inside of the upcoming v3 of Ray

Access Route Model-Bound Models in Laravel Form Requests with "#[RouteParameter]"
Read about the #[RouteParameter] PHP attribute that you can use in Laravel to access route model-bound models in your form request classes. The article covers how to use the attribute and the problem it solves.

Dynamically build Mail, DB, and Cache configurations in Laravel
Laravel’s new build() methods allow dynamic configuration of mail, database, and cache settings.

Laravel Custom Query Builders Over Scopes
While scopes are useful for simple queries, custom query builders are preferred for complex or frequently used queries.

Don't hardcode admin domains for auth
Stephen Rees-Carter tells how hardcoding admin domains in code can lead to security vulnerabilities

Exploring the browser rendering process
Here's everything what a browser does to display the content of an URL.

What I Wish Someone Told Me About Postgres
Postgres has many nuances and best practices that are important to understand.

Importing a frontend Javascript library without a build system
A nice guide by Julia Evans

The polyglot stack — PHP & GoLang
A polyglot architecture combines PHP and GoLang to leverage their strengths. PHP enables rapid development, while Go optimizes resource utilization.


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

Php 8.4 Asymmetric Visibility Explained In Detail (submitted by mohammed samgan khan)

Laravel 11.32.0 - Schedule Grouping Introduced (submitted by Nabil Hassen)

Working with Carbons Closest & Farthest in Laravel | How to | Tutorial | Quick Win Wednesday #QWW (submitted by Bert De Swaef)

Laravel 11.34.0 - Access Laravel Request Data as an Object (submitted by Nabil Hassen)

Laravel Mails package (submitted by Mark van Eijk)

Filament Mails (submitted by Mark van Eijk)

Building Maintainable PHP Applications: Value Objects (submitted by Davor Minchorov)

Here is Eloquent's Fluent helper in Laravel | How to | Tutorial | Quick Win Wednesday #QWW (submitted by Bert De Swaef)

Using Google Sheets as a RESTful JSON API (submitted by Paul Conroy)

Laravel 11.35.0: Introducing the URI Class (submitted by Nabil Hassen)

What I missed when building an MVP with Laravel (submitted by Karan Datwani)

How to add WebAuthn Passkeys To Backpack Admin Panel (submitted by Karan Datwani)

Field Actions in Statamic are Amazing (submitted by Maciek Palmowski)

Laravel Advanced: Know the sneaky $loop. (submitted by Karan Datwani)

Serverless caching and proxying with Cloudflare Workers (submitted by Paul Conroy)


Old posts

Here are a couple of links from a while ago!

FrankenPHP with Laravel can do a magical thing

Caching Strategies In Laravel

Examples of Great URL Design

Git gud at communication

API Versioning in Laravel

New major versions for spatie/image and Laravel Media Library have been released


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