HiBit

HiBit HiBit is a platform made by and for enthusiasts of the IT world. Read & comment on technical articles

As Laravel projects grow, keeping reads and writes in the same service quickly turns messy.That’s where CQRS (Command Qu...
18/08/2025

As Laravel projects grow, keeping reads and writes in the same service quickly turns messy.

That’s where CQRS (Command Query Responsibility Segregation) comes in.

In this article, I show how CQRS can be applied in Laravel 12 with a practical User domain example.

We'll structure the domain, application, and infrastructure layers, use the EventServiceProvider to wire up handlers automatically, and keep things clean without unnecessary complexity.

CQRS, short for Command Query Responsibility Segregation, is a simple yet powerful way to split the responsibility for writing and reading data in ...

Configuring multiple websites on a single Nginx server- - -Nginx is a powerful and lightweight web server that's commonl...
04/08/2025

Configuring multiple websites on a single Nginx server
- - -
Nginx is a powerful and lightweight web server that's commonly used to serve websites and static content. If you're running several websites on a single machine, configuring Nginx to manage them properly is efficient and straightforward. This article walks you through installing Nginx, setting up multiple sites, configuring firewall access, and organizing your folders and logs in a clean and practical way.

Nginx is a powerful and lightweight web server that's commonly used to serve websites and static content. If you're running several websites on a s...

How to use the AD Keyboard module with Arduino- - -When working on simple Arduino projects that need basic navigation or...
28/07/2025

How to use the AD Keyboard module with Arduino
- - -
When working on simple Arduino projects that need basic navigation or input, the AD keyboard module is a handy little tool. It's a 5-button unit that behaves like a directional pad, with four arrow-style buttons and one additional button. It doesn't require any soldering or setup, which makes it a practical choice for prototyping or small projects. You can plug it in and start using it right away, thanks to its three-pin layout and built-in resistors.

When working on simple Arduino projects that need basic navigation or input, the AD keyboard module is a handy little tool. It's a 5-button unit th...

MySQL 8 setup with remote connections- - -Setting up a MySQL 8 server can seem complicated at first, but with a clear an...
22/07/2025

MySQL 8 setup with remote connections
- - -
Setting up a MySQL 8 server can seem complicated at first, but with a clear and structured approach, the process becomes much more manageable. This guide explains how to install MySQL 8 on Debian-based systems, configure it to accept remote connections, and test that it is running correctly. The instructions are practical and direct, suitable for environments that require reliable and straightforward configuration.

Setting up a MySQL 8 server can seem complicated at first, but with a clear and structured approach, the process becomes much more manageable. This...

Managing yourself in a Startup without losing focus- - -Managing a startup isn't the same as managing a traditional comp...
14/07/2025

Managing yourself in a Startup without losing focus
- - -
Managing a startup isn't the same as managing a traditional company. Things move faster, roles shift often, and structure can be more of a goal than a reality. What works in a bigger or more stable organization often doesn't apply. People wear many hats, context changes every few weeks, and there's a constant need to adjust. In that environment, knowing how to manage yourself and others becomes less about control and more about adaptability. This article looks at how to stay effective and useful in that kind of setting, even when everything feels a bit chaotic.

Managing a startup isn't the same as managing a traditional company. Things move faster, roles shift often, and structure can be more of a goal tha...

Understanding Hexagonal Architecture with practical example- - -Hexagonal architecture, also called ports and adapters, ...
07/07/2025

Understanding Hexagonal Architecture with practical example
- - -
Hexagonal architecture, also called ports and adapters, is a software design approach that helps structure an application by clearly separating the core logic from technical details and external systems. Instead of shaping your app around frameworks, protocols, or storage, you keep your focus on what the application does, and let everything else connect to it through interfaces. The pattern isn't tied to any specific language. The examples in this article are written in PHP to show how the idea can be applied, but the approach works the same way in any backend system.

Hexagonal architecture, also called ports and adapters, is a software design approach that helps structure an application by clearly separating the...

Tag-based cache inside Laravel repositories- - -Working with cache can drastically improve the performance of an applica...
30/06/2025

Tag-based cache inside Laravel repositories
- - -
Working with cache can drastically improve the performance of an application, especially when dealing with data that doesn't change too often. While Laravel provides solid support for caching through multiple drivers, it doesn't offer native support for cache tags. To work around this limitation, we'll integrate Symfony's Cache component, which brings tag support and fits well into the repository pattern we've already established. In this article, we'll build on the existing structure and focus on using cache tags to group and clear related data more efficiently.

Working with cache can drastically improve the performance of an application, especially when dealing with data that doesn't change too often. Whil...

Understanding HMAC signatures and how they work- - -HMAC, short for Hash-based Message Authentication Code, is a method ...
23/06/2025

Understanding HMAC signatures and how they work
- - -
HMAC, short for Hash-based Message Authentication Code, is a method used to check that a message is both authentic and unmodified. It's a common tool in webhooks, APIs, and any place where secure communication between systems matters. The idea behind HMAC is to use a shared secret key along with a hashing algorithm to create a unique signature for a message. This signature acts like a stamp of trust, if anything changes in the message or if the wrong key is used, the signature won't match.

HMAC, short for Hash-based Message Authentication Code, is a method used to check that a message is both authentic and unmodified. It's a common to...

Getting started with CQRS in PHP- - -CQRS stands for Command Query Responsibility Segregation. It's a pattern that separ...
16/06/2025

Getting started with CQRS in PHP
- - -
CQRS stands for Command Query Responsibility Segregation. It's a pattern that separates how an application reads data from how it writes data. This approach can help structure code more clearly, especially in systems that deal with complex business logic or need to scale certain operations differently.

In PHP, CQRS is not a built-in feature. It's a way to organize your code, often supported by using command buses, query handlers, or simple service classes. The main idea is to treat commands and queries as different things, handled by different objects.

CQRS stands for Command Query Responsibility Segregation. It's a pattern that separates how an application reads data from how it writes data. This...

Organizing Laravel helpers using Composer- - -As a Laravel project grows, it is common to see the same small functions r...
09/06/2025

Organizing Laravel helpers using Composer
- - -
As a Laravel project grows, it is common to see the same small functions repeated in multiple places such as formatting values, checking routes, or handling basic text transformations. Instead of scattering these across controllers or traits, a more structured approach is to collect them into a dedicated helper file. While Laravel does not include a default setup for this, Composer's autoload configuration makes it straightforward to register a custom helper file. This ensures those functions are always available throughout the application without manual includes.

As a Laravel project grows, it is common to see the same small functions repeated in multiple places such as formatting values, checking routes, or...

Using the DS18B20 temperature sensor with Arduino Nano- - -The DS18B20 is a digital temperature sensor that comes in two...
02/06/2025

Using the DS18B20 temperature sensor with Arduino Nano
- - -
The DS18B20 is a digital temperature sensor that comes in two versions: a small TO-92 package, and a waterproof variant often encased in a metal tube with a long cable. Both provide digital temperature readings and can be used in many indoor and outdoor projects. The DS18B20 uses a protocol called 1-Wire, which only needs one data line to communicate and can support multiple sensors on the same pin.

The sensor supports several resolution levels: 9, 10, 11, or 12 bits. The default is 12-bit resolution, which gives a precision of 0.0625°C. Lower resolutions can speed up readings, while higher ones provide more detailed temperature data. The DS18B20 sensor measures temperatures within a range of -55°C to +125°C (-67°F to +257°F).

The DS18B20 is a digital temperature sensor that comes in two versions: a small TO-92 package, and a waterproof variant often encased in a metal tu...

Understanding the role of an Engineering Manager- - -Becoming an engineering manager is not just about climbing the ladd...
26/05/2025

Understanding the role of an Engineering Manager
- - -
Becoming an engineering manager is not just about climbing the ladder. It is a complete shift in responsibility. You are no longer measured by the code you write or the tasks you complete. Now you are accountable for how the entire team performs. You can delegate work, but you are still responsible for results. If no one owns a problem, you do. That is not an extra detail, that is the job.

This shift means learning to focus less on your individual contributions and more on enabling others to succeed. It requires staying aware of project status, team dynamics, and the challenges each person faces. Your role is to clear the way, provide support, and make sure work moves forward smoothly.

Becoming an engineering manager is not just about climbing the ladder. It is a complete shift in responsibility. You are no longer measured by the ...

Address


Alerts

Be the first to know and let us send you an email when HiBit posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

  • Want your business to be the top-listed Media Company?

Share