Resources March 11, 2022
1 min read

Resources March 11, 2022

106 words

Options Pattern in Golang

Option pattern is a functional programming pattern that is used to provide optional arguments to a function that can be used to modify its behavior.

How to create a simple event streaming in Laravel?

Event streams provide you with a way to send events to the client without having to reload the page. This is useful for things like updating the user interface in real-time changes are made to the database.

Cron best practices

There are a few ways to make the way you use cron(8) more robust if you’re in a situation where keeping track of the running job is desirable.

Comments

Latest Posts

7 min

1313 words

The Filament v4 Beta has officially arrived, and it’s undoubtedly the most ambitious and comprehensive update in this framework’s history. After exploring in detail all the new features, I can confidently say that this version represents a quantum leap in terms of performance, ease of use, and development capabilities.

In this comprehensive analysis, we’ll explore each of the new features in Filament v4, explaining not just what’s new, but also how these improvements can transform your workflow and your application possibilities.

4 min

728 words

The Filament team has announced exciting details about the upcoming Filament v4 Beta release, and it’s undoubtedly the most anticipated version to date. Filament v4 is the largest and most feature-packed release Filament has ever had, surpassing even the massive v3 that required over 100 minor versions.

Most Notable Features of Filament v4

Nested Resources

One of the longest-standing community requests is finally becoming reality. Nested resources allow you to operate on a Filament resource within the context of a parent resource.

11 min

2211 words

How many times have you started a Laravel project manually creating models, controllers, migrations, factories, form requests, and tests one by one? If you’re like most Laravel developers, you’ve probably wasted countless hours on these repetitive tasks that, while necessary, don’t add direct value to your application’s business logic.

Laravel Blueprint is completely changing this paradigm. This code generation tool, created by Jason McCreary (the same genius behind Laravel Shift), allows you to generate multiple Laravel components from a single, readable, and expressive YAML file. In this deep analysis, we’ll explore how Blueprint can transform your development workflow and why it’s gaining traction in the Laravel community.

6 min

1149 words

Idempotency in Laravel: How to Avoid Duplicates in Your APIs with Elegance

In modern API development, one of the most critical challenges is ensuring that operations don’t execute multiple times accidentally. Imagine a user making a payment and, due to connectivity issues, clicking the “Pay” button multiple times. Without proper measures, you might process multiple payments for the same transaction. This is where idempotency comes into play.

What is Idempotency?

Idempotency is a mathematical concept applied to programming that guarantees that an operation produces the same result regardless of how many times it’s executed. In the context of APIs, it means you can make the same request multiple times without causing additional side effects.

5 min

939 words

Moments of change, moments of evolution, a constant in my life, with the 25th anniversary of the creation of the web I’ve entered “review” mode and I’m highly perplexed.

I’ve been doing things for the same time (25 years), enjoying, always with the same concept and particularity: Enjoyment and result, but it hasn’t been relevant for a long time (which is also not very relevant).

I’ve realized that the usual thing is to do things within your comfort zone, and I’ve never had one or knew one could exist, hence I’ve touched and done unusual things or perhaps “untimely”, when a certain technology could be in fashion “Buzz” I hadn’t been using it for a long time because it didn’t give me what something else gave me,…

2 min

392 words

Laravel, in addition to using multiple third-party packages, is also possible to use parts as components. All components are under the “Illuminate” namespace.

If there’s a really interesting and useful class, it’s Collection, which allows us to work with data arrays in a simple and “programmatic” way.

To have this class in our project, we only need the illuminate/support package which we can install with:

composer require illuminate/support:5.2.x-dev

To show some examples, we’ll use a small array with this data: