Implement Soft Delete and Unique validation in Laravel
If you have been using soft delete in your application then you may have come across this situation. When we try to create a...
Using has() vs hasFile() in Laravel
In this article, we will learn about using has() vs hasFile() methods in laravel. These are very common methods when handling form requests in...
Handle Request validation in Laravel
Validation is one of the most important things to do in any application. Validating form requests helps us to build a robust and secure...
Laravel API documentation with Swagger
Today, we will learn about creating beautiful API documentation with Swagger in Laravel. API documentation is very important when working in a team. It...
Laravel order by latest, oldest and newest
In this short article, we will learn about the meaning and usage of latest, oldest and newest methods in laravel. The latest and oldest...
How to seeds images with Faker in Laravel
Faker is a library that generates fake data for us. Faker helps us populate the database which helps to speed the development process. It...
Handle No Query Results For Model error in Laravel
In this short article, we will learn how we can handle "No Query Results For Model" error in Laravel. First of all, we need...
Create Custom Helper function in Laravel
Laravel provides many helper functions by default which can be used globally in any project. Some of the most used helper functions are app_path(),...
Efficiently Count Related Models in Laravel
In programming, as the size of the project grows, the complexity of the application also grows automatically. In this article, we will learn how...
How to Implement Soft Delete in Laravel
In programming deleting a record has two concepts i.e. Hard Delete and Soft Delete. Hard Delete means you are completely removing the record from...