In this post, I will show to you an example of how to create a controller in the Laravel 8 application. I will give you an example that will easier to you to fo...
Passing booleans to a method can be code smell, as it is not clear what a boolean does by reading the calling code. Instead of using a temporary variable, you c...
In this Laravel example, I'm sharing the first() and firstOrFail() methods on the Laravel Eloquent query. The Laravel Eloquent first() method will help us to re...
In this post, I'm sharing how to use Laravel 8 whereIn() query from Eloquent and query builder. This method will able us to search many values in a single query...
In this post, I will explain what is the usage of Laravel Eloquent updateOrCreate() and its importance. Laravel provides updateOrCreate() to help us to update t...
In this post, I will explain what is the usage of Laravel Eloquent firstOrNew() and its importance. Laravel provides firstOrNew() will help us to check the reco...
Providing developers and businesses a reliable, easy-to-use cloud computing platform of virtual servers (Droplets), object storage ( Spaces), and more.
In this post, I will explain what is the usage of Laravel Eloquent firstOr() and its importance. Laravel provides firstOr() that enables us to put another logic...
SendGrid sends email in two ways:- SMTP relay and Web API. SendGrid provides client libraries in many languages. SMTP has many features by default but is hard t...
In this post, I'm sharing how to implement the Laravel 8 and 9 user impersonation. Usually using this functionality to log in on behalf of admin users. User imp...
In this artical we will see how to use where and orwhere condition in laravel 8. For where() and orWhere() method the first argument is the name of the column....
Scout APM helps PHP developers pinpoint N+1 queries, memory leaks & more so you can troubleshoot fast & get back to coding faster. Start your free 14-day trial...
Unlike traditional Long-polling using AJAX requests, where multiple requests are sent to the server and a new connection is established each time, event streams...
Laravel is basically a framework used to build web applications using PHP at the backend. It is one of the most popular PHP-based web frameworks considered nowa...