Did you ever had a Laravel application and needs filters over your API? You might have tried GraphQL, however, you could write a simple one and don’t need any integrations.
In this article I’m going to implement a simple service which could work with Laravel eloquent ORM, it would handle relations and also the basic operators which uses the most.
You are developing a RESTful API and want to let your users filter the indexes with different fields or even on the relations of your model.
For instance, a simple
article model which has so many
There are so many ways to setup replication for a PostgreSQL master, but when it comes to docker, it could waste your time. In this article I will tell you how to setup a PostgreSQL master first, then we will add a slave for it using streaming replication method, all in docker containers.
Before going into the details I assume you are familiar with docker and docker-compose service, understand the basics and could work with terminal. Also it’s good to read my article, Tips on Using Docker, since I use them mostly in my configurations.
If you are a developer, sysadmin or a dev-ops guy, you always need to have an eye on your applications and servers which are running somewhere around the world. There are so many tools that let you monitor them and get alerts whenever something is going wrong. Prometheus & Grafana are a couple which let you measure different aspects of your application and also have nice charts that you could understand easily. Here I’m going to have an introduction for a simple setup using docker. Here I’m not covering any details and just trying to set it up and running.
In this article, I’m going to share my experiences with using Docker in both development and production mode. For reading this article you’ll need to know about docker itself, how it works, and run some docker commands before.
If you have never heard about docker or didn’t get a chance to work with it, please read the Get Started with Docker first and then continue reading this article.
I’m going to talk about 5 tips for using docker. These things came from the real problems which I faced while using docker in my company.
One of the most rookie mistakes…
tmux is a terminal multiplexer: it enables a number of terminals to be created, accessed, and controlled from a single screen.
tmux may be detached from a screen and continue running in the background, then later reattached.
by tmux wiki
I have created a website which helps you to use tmux. Most of the content of this article is coming from that website.
Check it out !
You could take a look at tmux’s github repository and find a suitable way for installation, however, if you are using a common OS, it should be in its package manager.
A back-end developer who loves Real Madrid, Mercedes AMG Petronas F1 Team and Coldplay.