123 posts in this category.
You might have a ton of reason to do this so I'm not going to bore you with an introduction. If you don't have too much objects Then you might be able to d...
I have this website that crawls reddit posts and put them online. There's hundred of thousands of entries, each one with their own URL. The listing is paginate...
Let's combine two Nuxt 2 plugins : nuxt-i18n and @nuxtjs/auth First we need to create a new @nuxtjs/auth plugin. This is fairly easy ! Let's assume tha...
Laravel Valet is awesome and it automatically set your local domains up with SSL certificates, so that you can use your local domain.test with https Howeve...
spatie/laravel-backup is an amazing Laravel Package that allows you to automatically send backups of your laravel application to an AWS S3 Bucket. It's good...
I have this very specific project running in PHP 7.4 on my machine with Laravel Valet. It's a front end application in vuejs with a separate back end and the...
TL;DR : A Mixin is a script file containing some logic that you can import into a vuejs component. It is structured exactly like in the script tag of a classic...
How to use a Presenter class Super simple! class BookPresenter extends Presenter { public function __construct( public Book $book ) {}...
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...