Single Action Controller in Laravel
In this post, we’re going to find out what is a Single Action Controller, how to create one, and what are the pros and cons… Read More »Single Action Controller in Laravel
In this post, we’re going to find out what is a Single Action Controller, how to create one, and what are the pros and cons… Read More »Single Action Controller in Laravel
VS Code introduced a new cool feature that allows you to set up the terminal to auto-reply when a prompt is received. Here I have… Read More »VS Code Terminal Automatic Replies
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