Laravel Use UUID in Eloquent Models
Let’s find out how to set up Eloquent Models to use UUIDs are Primary Key in a MySQL database, instead of auto-incrementing integers. I won’t… Read More »Laravel Use UUID in Eloquent Models
Let’s find out how to set up Eloquent Models to use UUIDs are Primary Key in a MySQL database, instead of auto-incrementing integers. I won’t… Read More »Laravel Use UUID in Eloquent Models
In this post, we’re going to implement the Repository design pattern in a Laravel application. If you’re coming from the Symfony world or any other… Read More »How to Use Repository Design Pattern in Under 3 Minutes
VS Code’s latest update introduced a new command to surround a piece of code with a snippet. It’s easy, fast, and may speed up your… Read More »VS Code Surround With Snippet
We’re going to have a look, in just a few steps, at how to seed the database with data that come from a JSON file… Read More »Seed Database From JSON File in Laravel
Let’s quickly have a look at how to integrate Git Bash as the default integrated terminal in Visual Studio Code. By default, VS Code comes… Read More »VS Code Integrate Git Bash as Default Terminal
In this post, we’re going to look at a simple way of unit testing a Model’s getters and setters. We won’t go into the debate… Read More »Unit Test Getters and Setters in Laravel
By default, VS Code doesn’t have the option to import PHP Classes. To achieve this, we have to use an extension. Let’s open the… Read More »VS Code Import Class PHP
In this post, we’re going to have a look at a simple way of preventing sending e-mails to real customers from our local or staging… Read More »Laravel’s alwaysTo() — Avoid Accidental Email Sending
In this post, we’ll discuss how to review your code and why you should get into the habit of doing that. But before we begin,… Read More »5 Ways to Code Review Your Code and Why You Should Do It
Let’s quickly have a look at how we can easily change the size of the horizontal and vertical editor scrollbars. Open the Settings… Read More »VS Code Resize Editor Scrollbars