Laravel

25 posts
Merging 4 codebases with help of Rector

Merging 4 codebases with help of Rector

The set up When developing software, you sometimes come up with ideas that in the end don’t really work out. Depending on the idea and on the time spent finding out it’s a bad idea, it can be challenging to turn back the changes. One of those ideas...

Improving Docker performance for macOS

Improving Docker performance for macOS

One of the most important things when starting to work on a project is to set up a local development environment. For me, this should have the following requirements: * Easy to install, preferably a one-click/command solution * Reproducible across multiple host machines, by everyone in the team Very often, our...

Laravel's Polymorphic relationships and Polymorphism

Laravel's Polymorphic relationships and Polymorphism

As many of you know Laravel provides a concept for dealing with Polymorphism in Eloquent relationships called “Polymorphic Relationships“. It’s a nice abstraction, but if you are not careful it might lead to a lot of type checking at runtime all over the place. There’s nothing wrong with...

Deploying distributed web application - Laravel queued jobs

Deploying distributed web application - Laravel queued jobs

If you have a really simple PHP application that you deploy to a single server, deploying it basically boils down to transferring the source code to the server, one way or another. Maybe you also clear OPcache, if you have it enabled. If your application is more complex and constitutes...

Structuring your labels for maximum efficiency in a Laravel application

Structuring your labels for maximum efficiency in a Laravel application

If you’ve ever watched a TV show like “Ramsay’s Kitchen Nightmares” or similar then you’re probably aware of how important it is to label your food when you store it in a freezer. You might be wondering how this relates to software development? Just like food, forms...

How to integrate Elasticsearch in your Laravel App - 2024

How to integrate Elasticsearch in your Laravel App - 2024

Integrating Elasticsearch with Laravel enhances search capabilities beyond simple LIKE matches. This guide covers Elasticsearch basics, setting up a local environment with Docker, creating a demo application, and implementing Elasticsearch integration using observers and repositories.

Let's have pessimistic locking strategies

Let's have pessimistic locking strategies

When managing data, you need to take into account several matters. One of them is concurrency. It happens when multiple people try to simultaneously access some form of data (entities, objects, database records, etc) to either see it or update it. Imagine there is a customers data table and I...

Using MySQL for Testing (on Laravel)

Using MySQL for Testing (on Laravel)

We have a really good testing culture at madewithlove and, in one of the projects I am working on, we have a decent suite of tests. A big chunk of these tests are Feature Tests. In this article, I’ll describe the process of switching a project’s test suite...

Kubernetes 101 - explaining the basics while running a Laravel application with Redis and MySQL.

Kubernetes 101 - explaining the basics while running a Laravel application with Redis and MySQL.

Kubernetes, also known as K8s, seems to be getting quite some attention these days in the container orchestration world. It even got some attention from Docker Inc. itself a while back, despite the fact that they have their own container management tool called Docker Swarm (and it’s as good...

You’ve successfully subscribed to madewithlove
Welcome back! You’ve successfully signed in.
Great! You’ve successfully signed up.
Success! Your email is updated.
Your link has expired
Success! Check your email for magic link to sign-in.