Recent Articles

Laravel Console Command to Automatically Restore a Backup from Spatie Laravel Backup Package

profile picture

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 practice to regularly trigger a "DB only" backup. What about automatic restore...

- - - - - - - - - - - - - - -

Laravel Valet - Too many parallel requests getting blocked

profile picture

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 they are communicating through an API. There's a page that makes a lot of requests in one g...

- - - - - - - - - - - - - - -

What is a Mixin in Vuejs ? Here's a simple explanation

profile picture

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 component. It's main objective is to prevent re-writing the same logic in multiple compon...

- - - - - - - - - - - - - - -

Presenters in PHP - How to clean your views

profile picture

How to use a Presenter class Super simple! class BookPresenter extends Presenter { public function __construct( public Book $book ) {} public function price() { return number_format($this->book->price, 2); } }...

- - - - - - - - - - - - - - -

Transformers in PHP

profile picture

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 in a re-usable way. For laravel developers, this is mostly done through Resources . Fo...

- - - - - - - - - - - - - - -

Repository pattern in PHP and Laravel

profile picture

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 controller methods using dependency injection. You use the class methods instead of running sql q...

- - - - - - - - - - - - - - -

Building your empire starts with small rocks

profile picture

A ambitious man sees a castle on the horizon. He wants to have a big castle too. He goes to an old, wise man and tells him, "you see this castle ? I want the same one. I want my own empire". The wise man thinks for a second and says &q...

- - - - - - - - - - - - - - -

Mandatory VS Code extensions for PHP Developers

profile picture

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 extensions that makes VS Code a robust editor. Here's the most important extensions you need...

- - - - - - - - - - - - - - -

LaravelPackages.net has been upgraded

profile picture

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 made for laravel. It's very useful when you are looking for a package and want to quickly...

- - - - - - - - - - - - - - -

Cinéma : The book of Eli

profile picture

The book of Eli est un drame apocalyptique narrant l’histoire d’un élu de dieu dont le devoir est de sauver l’humanité, dévastée par une guerre des religions, avec la dernière bible non-détruite de la planète. D’une apocalypse vue et revue et d’un r...

- - - - - - - - - - - - - - -

PHP Course : Abstract Classes vs Interfaces

profile picture

TLDR; With Abstract Classes, you can define default behaviours that can be inherited by subclasses. That's not possible with interfaces. The template design pattent makes use of abstract classes. It defines default behaviour in the parent class but...

- - - - - - - - - - - - - - -

Discourse and Cloudflare : Error on port 443 on installation

profile picture

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 the discourse install commands. I was stuck on the very begining because the script said i...

- - - - - - - - - - - - - - -

PHP Course : What is a Singleton ?

profile picture

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 object. A singleton has more or less the same pros and cons than global variables. Even if...

- - - - - - - - - - - - - - -

Recette Bolognaise Tomates Fraiches

profile picture

Ingrédients 6 oignons 4 gousses d'ail 1kg haché 1.5kg Tomates 1 poivron rouge Carottes (autant qu'on veut) Courgette (autant qu'on veut) Préparation Dans la même casserole : Faire rissoler les 6 oignons et les 4 gousses d'ail...

- - - - - - - - - - - - - - -

Simple yet powerful search mixins for vuejs

profile picture

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 input on top. So that your users can type something and filter through the results. The...

- - - - - - - - - - - - - - -

about me

profile picture

I consider myself as an IT Business Artisan. Or Consultant CTO. I'm a self-taught Web Developper, coach and teacher. My main work is helping and guiding digital startups.

more about me

follow me

newsletter

A weekly email with the latests articles

support my work

Start trading on binance
  • BTC

    BTC

    18SY81ejLGFuJ9KMWQu5zPrDGuR5rDiauM

  • ETH

    ETH

    0x519e0eaa9bc83018bb306880548b79fc0794cd08

  • Monero

    XMR

    895bSneY4eoZjsr2hN2CAALkUrMExHEV5Pbg8TJb6ejnMLN7js1gLAXQySqbSbfzjWHQpQhQpvFtojbkdZQZmM9qCFz7BXU

recent posts

QBUS - MQTT Quick Tutorial

1
10 months ago

DDOS By Web Crawlers

1
1 year ago

Something Given

1
1 year ago

2024 © My Dynamic Production SRL All rights Reserved.