In PHP, you are probably familiar with the break keyword, which is used to stop a loop. What many...
If you need to customize the column names for created_at and updated_at, you can do so at the...
🔁 Reloading Models with fresh() Laravel's fresh method allows you to reload a model or an...
Laravel is full of hidden gems that can make your development smoother. Today, I want to highlight...
I encountered a strange scenario while adding a feature to the Admin Dashboard. The problem was that...
If you're using the same condition repeatedly in Blade, especially if it's complex, you likely won't...
Laravel Blade offers several clean and expressive ways to loop through data. 1. Basic Loop...
In certain rare scenarios, you should create an instance of a class and call its methods directly...
Laravel offers flexible methods for handling route model binding. You can bind models dynamically by...
It is considered best practice to send notifications and emails in the recipient's preferred locale....
Sometimes, you may need to duplicate a model instance and create a new one with some custom changes....
When dealing with multiple forms on a single page, especially when the forms contain duplicate input...
Let’s explore some powerful Laravel pagination methods that supercharge your pagination...
I previously shared a tip on how to validate attributes conditionally. However, I didn't fully...
Let’s explore a handy tip for adding extra metadata to the top level of your API responses. Assume...
I worked on a custom CRUD command that generates a Model, Migration, Views, Controller, Request,...
If you're using Laravel's methods to download a file, it's important to delete it afterward to avoid...
✨ Switching between Query Builder and Eloquent Builder has never been easier. With just one simple...
A new version of Easy Model, Custom Fresh, and M.R Darkest Theme has been released 💥 The v1.0.9 of...