115 posts in this category.
Another Design Pattern to cover in PHP are the Transformers . This one is really simple to understand. It allows you to return an object to another format i...
TL;DR A repository is an interface-signed class that encapsulate all SQL queries in specific methods. The repository class is then injected into your control...
VS Code is a powerful and versatile IDE, but out of the box, it doesn't have much support for PHP developers. Fortunately, the PHP community made several exten...
For the past weeks I've been working on a design overhaul of laravelpackages.net For those who don't know this website, it's a database of composer packages...
TLDR; With Abstract Classes, you can define default behaviours that can be inherited by subclasses. That's not possible with interfaces. The template design pa...
I just recently setup a new VPS to install discourse. First step was to create my subdomain on cloudflare. Then I ssh'd into the VPS and start executing th...
The Singleton is a design pattern of class creation that garantee instanciating a single object of that class and provide a unique point of access to that ob...
"IoC" stands for Inversion of Control and I already talked about it in my PHP Course : What Is Dependency Injection As for the "Container&qu...
If you ever worked on a vuejs project, you surely one time build a list of data. And when you have this nice listing, you probably want to add a little search...
Last week I decided to resurect an old project : gitweet.io I figured it was a good opportunity to try out Laravel Jetstream ! As this project only use g...
"Callback hell" is a term I've never heard off before discussing asynchronous javascript during a job interview. As soon as I got home, I checked i...
You've finished building the next big SaaS and you want now to pimp your homepage to make it more attractive ? You're in the right place. Here's a few things...
Sometimes when you build a SPA with an API, the Backend will not allow you to download a file by providing the absolute URL to that file, but will instead send...
With the latest release of Laravel 8 and laravel Nova 3.9, the minimum required PHP version is 7.4.9 On my mac I had php 7.4.7 To make this very small upda...
Last week end I started working on an external package for my startup . Even though it's still in Work In Progress, the goal of the package is to be able to c...
Sometimes when you're working on a specific feature, or maybe a specific page of your website, or even a unit test, you're wondering about the SQL queries that...
I've got this raspberry pi 3 running from a very long time, and some time ago I installed Gekko, a crypto trader bot, on it. The problem is that with my 500G...
You surely encountered this use keyword in php countless times, in different situations. Isn't that a bit funny that the same exact keyword is used in differ...
A few weeks ago I had a very bad surprise in the morning when I saw that all my websites where down. The issue was because I had a bug in one of my project tha...
Jungling between projects can sometimes be complicated when you're a developer. Dozens of different IDE windows open, searching in the "Open Recent...&quo...