Check If Route Exists in Laravel
Let’s look at how we can check if a route exists in a Laravel project. We’re going to use the has() method from the… Read More »Check If Route Exists in Laravel
Explore a variety of practical Laravel easy-to-follow tutorials that cover both front-end and back-end aspects.
Let’s look at how we can check if a route exists in a Laravel project. We’re going to use the has() method from the… Read More »Check If Route Exists in Laravel
Let’s imagine the following scenario. You’re working on a monolith or a macroservice project. And a mobile app developer comes to you and says: –… Read More »Find Route Definitions By API Paths In Seconds
Let’s look at 3 simple methods to check if debug mode is enabled in a Laravel project. Check .env file Let’s start with… Read More »3 Methods to Check If Debug Mode Is Enabled in Laravel
Let’s have a look at several ways you can check and get the Laravel version your app is using. Check Laravel version via CLI Check… Read More »How to Check Laravel Version of Your App
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