Solving "Malformed UTF-8 characters, possibly incorrectly encoded" error in Laravel
I ran into this error about malformed characters when return a JSON response. The solution is using multi-byte safe string functions.
I ran into this error about malformed characters when return a JSON response. The solution is using multi-byte safe string functions.
If you need to connect to a database over an SSH tunnel, here is how to do that in Laravel. You need a new database connection and command to create the tunnel.
Now that 2019 comes to an end, it is time to reflect and make plans for the new year.
Every time I've updated Laravel Homestead or started a new environment, I've had problems running Laravel Dusk. These are solutions for the most common problems.
Changing the primary key from an auto-incrementing integer to a UUID is really simple in Laravel Eloquent.
Service buses exist in different flavors. This article explains the overall concept of the service bus. Then it shows differences between the command bus, query bus, and event bus.
This article explains the basic concepts of the command bus. Why should you use it and how? Pointers are given to advanced use cases and good resources.
I've migrated my blog from Apache to NGINX. In the process, the .htaccess file was converted into an NGINX Server Block. This article shows both files and serves as an example for others that want to migrate.
This articles explains how to install a private PHP package with Composer. Using SSH keys and a little composer.json magic, in just 3 steps.
SSH keys can be used to create secure connections between computers. This article explains the basics of creating and using SSH keys.