Force All API Requests to Accept JSON
Learn how to enforce the ‘Accept: application/json’ header for client requests, and send an error message if it’s missing.
Explore a variety of practical Laravel easy-to-follow tutorials that cover both front-end and back-end aspects.
Learn how to enforce the ‘Accept: application/json’ header for client requests, and send an error message if it’s missing.
Inspire or motivate yourself with quotes directly in the command line while working with Laravel.
In this post, we’re going to take a quick look at whether it’s a good or bad idea to use Eloquent Models and application code… Read More »Models & Application Code in Migrations – Good or Bad?
Let’s say you want to inspect the database to find information such as the number of open connections, the size of the database, the number… Read More »Quickly Inspect Database & Tables in Laravel
Maintenance mode is an important aspect of any web application’s lifecycle, allowing us, the developers, to perform updates, fixes, and improvements. In Laravel, you can… Read More »Bypass Maintenance Mode in Laravel
Let’s assume that in your Laravel application, you have a form in which you use a Form Request to validate several fields, including the email.… Read More »Laravel — Improve Email Validation
Laravel provides two common methods for retrieving configuration data: env() and config(). While they may seem similar at first, there are important differences between them.… Read More »env() vs config() in Laravel — What’s the Difference?
In this article, we will discuss 3 ways to check if a file exists using Laravel’s functionalities. Storage Facade Let’s start off with the Storage… Read More »How to Check If File Exists Using 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
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