Grayscale profile picture

Patrique Ouimet

Senior Backend Software Engineer

Tips & Tricks

Common Laravel performance mistakes

In this article, we will discuss some common performance mistakes that developers make when working...

Published on Feb 15, 2024

#php #laravel #performance #eloquent
MySQL Dump from Remote Server

A quick tip on setting up remote MySQL dumps. NOTE: This is not a tip for security, but a short...

Published on Apr 11, 2021

#mysql #backup #devops
PHP Imagick Webp Error

If imagick shows an error similar to this You might be having issues with webp images. The solution...

Published on Dec 5, 2020

#php #imagick #images
Git Stash

Explanation From the output of git stash --help: "Use git stash when you want to record the current...

Published on Jul 26, 2020

#git #stash
PHP Common Regex

This tip will contain common regex examples for PHP This tip will be updated as I find more...

Published on May 13, 2020

#php #regex
PHP Composer Package Testing

When you're making changes to a package and want to test it in another project there's a few...

Published on Apr 23, 2020

#composer #package #git
Git Workflow

Here's a basic git workflow I've come to appreciate. There's a few assumptions made with this...

Published on Apr 22, 2020

#git #workflow
Emoji Support for PHPStorm on Ubuntu

Quick tip on how to enable emojis on Ubuntu 18.04 (and likely other versions/distros) The above...

Published on Apr 3, 2020

#emoji #phpstorm #ubuntu #jetbrains
Virtualbox Screenshots

A simplest way to take screenshots from a running virtualbox through terminal is as follows: The...

Published on Apr 2, 2020

#virtualbox #vboxmanage #screenshots
Suppressing PHP Psalm Errors

Recently I've been tickering with writing a routing package. While writing it I ran into issues...

Published on Dec 16, 2019

#php #psalm
Canadian Postal Code Regex in JavaScript

A simple javascript regex test to verify if a string is a valid postal code in Canada.

Published on Oct 25, 2019

#javascript #regex
Navigating and Highlighting Text

Navigating Words MacOS | Action | Keys | |----|----| | Single Word | OPTION + LEFT/RIGHT ARROW | |...

Published on Oct 15, 2019

#macos #windows #linux #editing #shortcuts
Convert MOV to MP4 with FFMPEG

Intro A simple bash function to convert an MOV (or .mov) to MP4 (or .mp4). You simply type the...

Published on Oct 9, 2019

#terminal #mov #mp4 #ffmpeg
PHP Annotations Cheat Sheet

Foreword Work in progress compiling a list of possible php annotations @var Used to describe a...

Published on Aug 15, 2019

#php #annotation #annotations
Laravel Valet cURL Errors Between Sites

Laravel Valet cURL Error If you're experiencing curl errors when using Laravel Valet and trying to...

Published on Apr 8, 2019

#laravel #valet #curl
Installing PHP and PECL Extensions on MacOS

Install PHP with Homebrew Fixing broken directories On a fresh MacOS installation I was getting an...

Published on Apr 4, 2019

#php #homebrew #pecl #mac #macos
Laravel Query Tricks

Intro A quick post on some of my favourite Laravel query tricks Where In With a Subquery Resulting...

Published on Mar 13, 2019

#laravel #query
Adding Custom Headers to Laravel Mail Notifications

Setup We'll need a few things to get this going. First we'll add a notification class: Which should...

Published on Feb 18, 2019

#laravel #mail #headers #header
Dot Notation for Laravel Config Files

Using Dot Notation for Config Files There's a few ways to access the nested data in configs,...

Published on Feb 18, 2019

#laravel #config #helper
Fluid Eloquent Queries

Fluid Eloquent Queries This is a simple example of how to write fluid (or chained) eloquent queries...

Published on Jan 29, 2019

#laravel #eloquent #fluent #php
Laravel Eloquent vs Collection Count

Intro This can be a little confusing as the syntax barely changes but it makes a big difference....

Published on Jan 26, 2019

#laravel #eloquent #php #performance