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 of using it. Let’s dive in! What...
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 of using it. Let’s dive in! What...
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 go into depth about the pros and cons of...
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 framework that uses the Repository pattern to interact with...
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 within our application. In this example, we’ll use the...
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 on whether or not it’s ok to write specific...
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 environment with the help of alwaysTo() method. Let’s picture...
In this post, we’re gonna be looking at how to enable and disable debug mode in Laravel. Debug mode provides you with detailed error messages, stack traces and other useful information that you need...
In this post, we’re gonna be looking at how to create custom helper functions that can be globally used, meaning they can be called on both back-end such as Controllers and Services and front-end...
In this post, we’re gonna be looking at how to process large amounts of database records with Laravel without running into memory or locking issues. And that is – by chunking the data. We’ll...
I’m gonna be showing you how to download files from an API with Laravel without having to write the contents of the files to disk. This can be extremely useful for example when your...