Improved dd() and dump() output in Laravel 9.32+
With the release of Laravel 9.32, dd() and dump() functions’ output has been improved. They are now showing the source file and the… Read More »Improved dd() and dump() output in Laravel 9.32+
With the release of Laravel 9.32, dd() and dump() functions’ output has been improved. They are now showing the source file and the… Read More »Improved dd() and dump() output in Laravel 9.32+
With the release of Laravel 9.32, the Benchmark helper was introduced. The measure() static method takes in a Closure and outputs the execution time… Read More »How to Benchmark Your Code in Laravel 9.32+
Let’s look at how we can add custom headers to HTTP responses in a Laravel application. Create a Middleware One good solution, in this… Read More »Set Custom Headers to HTTP Responses 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
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
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
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
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’re gonna be looking at how to enable and disable debug mode in Laravel. Debug mode provides you with detailed error messages,… Read More »How to Enable and Disable Debug Mode in Laravel